From: Vsevolod Stakhov Date: Tue, 22 Jun 2010 17:28:41 +0000 (+0400) Subject: * TIMEDB->TIMEB X-Git-Tag: 0.3.1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1367e68d24edd90c8f896c6df602a3a4e558f2a7;p=thirdparty%2Frspamd.git * TIMEDB->TIMEB --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7be021fca3..ab2e11ce0c 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 diff --git a/config.h.in b/config.h.in index 6fd2de3660..fa5be7b1da 100644 --- a/config.h.in +++ b/config.h.in @@ -224,8 +224,8 @@ #endif /* timedb */ -#ifdef HAVE_SYS_TIMEDB_H -#include +#ifdef HAVE_SYS_TIMEB_H +#include #endif /* sysexits */ diff --git a/src/evdns/evdns.c b/src/evdns/evdns.c index b19da22291..5401104b5d 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;