@@ -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> |
@@ -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 */ |
@@ -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; |