summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--config.h.in4
-rw-r--r--src/evdns/evdns.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7be021fca..ab2e11ce0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -345,7 +345,7 @@ IF(HAVE_CLOCK_GETTIME)
CHECK_SYMBOL_EXISTS(CLOCK_PROCESS_CPUTIME_ID time.h HAVE_CLOCK_PROCESS_CPUTIME_ID)
CHECK_SYMBOL_EXISTS(CLOCK_VIRTUAL time.h HAVE_CLOCK_VIRTUAL)
ELSE(HAVE_CLOCK_GETTIME)
- CHECK_INCLUDE_FILES(sys/timeb.h HAVE_SYS_TIMEDB_H)
+ CHECK_INCLUDE_FILES(sys/timeb.h HAVE_SYS_TIMEB_H)
ENDIF(HAVE_CLOCK_GETTIME)
CHECK_C_SOURCE_COMPILES ("#include <sys/types.h>
diff --git a/config.h.in b/config.h.in
index 6fd2de366..fa5be7b1d 100644
--- a/config.h.in
+++ b/config.h.in
@@ -224,8 +224,8 @@
#endif
/* timedb */
-#ifdef HAVE_SYS_TIMEDB_H
-#include <sys/timedb.h>
+#ifdef HAVE_SYS_TIMEB_H
+#include <sys/timeb.h>
#endif
/* sysexits */
diff --git a/src/evdns/evdns.c b/src/evdns/evdns.c
index b19da2229..5401104b5 100644
--- a/src/evdns/evdns.c
+++ b/src/evdns/evdns.c
@@ -1136,7 +1136,7 @@ default_transaction_id_fn(void)
}
clock_gettime(clkid, &ts);
trans_id = ts.tv_nsec & 0xffff;
-#elif defined(HAVE_SYS_TIMEDB_H)
+#elif defined(HAVE_SYS_TIMEB_H)
struct timeb tb;
ftime(&tb);
trans_id = tb.millitm & 0xffff;