chiark / gitweb /
Use CLOCK_MONOTONIC for all our timing needs, when possible
[secnet.git] / resolver.c
index 45738eab5aa74523c2a8e66794bd87eefc52b873..3f9a6d5fb8bdc2fc9c431d61c3b7d7a513a0a124 100644 (file)
@@ -211,6 +211,9 @@ static list_t *adnsresolver_apply(closure_t *self, struct cloc loc,
     conf=dict_read_string(d,"config",False,"adns",loc);
 
     adns_initflags iflags = 0;
+#if USE_MONOTONIC
+    iflags |= adns_if_monotonic;
+#endif
 
     if (conf) {
        if (adns_init_strcfg(&st->ast, iflags, 0, conf)) {