diff options
Diffstat (limited to 'dist/aclocal/clock.m4')
-rw-r--r-- | dist/aclocal/clock.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dist/aclocal/clock.m4 b/dist/aclocal/clock.m4 index a978ffa5..a0c09112 100644 --- a/dist/aclocal/clock.m4 +++ b/dist/aclocal/clock.m4 @@ -3,7 +3,7 @@ # Configure clocks and timers. AC_DEFUN(AC_TIMERS, [ -AC_CHECK_FUNCS(gettimeofday localtime time strftime) +AC_CHECK_FUNCS(gettimeofday localtime localtime_r time strftime) # AIX 4.3 will link applications with calls to clock_gettime, but the # calls always fail. @@ -20,12 +20,14 @@ esac # existence to mean the clock really exists. AC_CACHE_CHECK([for clock_gettime monotonic clock], db_cv_clock_monotonic, [ AC_TRY_RUN([ +#include <time.h> #include <sys/time.h> -main() { +int main() { struct timespec t; return (clock_gettime(CLOCK_MONOTONIC, &t) != 0); }], db_cv_clock_monotonic=yes, db_cv_clock_monotonic=no, AC_TRY_LINK([ +#include <time.h> #include <sys/time.h>], [ struct timespec t; clock_gettime(CLOCK_MONOTONIC, &t); |