summaryrefslogtreecommitdiff
path: root/dist/aclocal/clock.m4
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /dist/aclocal/clock.m4
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'dist/aclocal/clock.m4')
-rw-r--r--dist/aclocal/clock.m46
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);