[master] 7717b4c85 fix a minor oversight
Nils Goroll
nils.goroll at uplex.de
Fri Oct 5 10:40:07 UTC 2018
commit 7717b4c85bc4e25ba6730b80d9977fa8580b4db7
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Fri Oct 5 12:38:02 2018 +0200
fix a minor oversight
I failed to consider the hypothetical case that there is only gethrtime()
and no clock_gettime(CLOCK_MONOTONIC).
diff --git a/configure.ac b/configure.ac
index 85f377dc9..169325892 100644
--- a/configure.ac
+++ b/configure.ac
@@ -355,6 +355,7 @@ AC_CHECK_FUNCS([clock_gettime])
AC_CHECK_FUNCS([gethrtime])
LIBS="${save_LIBS}"
+AC_DEFINE([USE_GETHRTIME], [1], [whether to use gethrtime])
if test "x$ac_cv_func_gethrtime" = xyes && \
test "x$ac_cv_func_clock_gettime" = xyes ; then
AC_MSG_CHECKING(if clock_gettime is faster than gethrtime)
@@ -407,7 +408,6 @@ static hrtime_t cl()
AC_DEFINE([USE_GETHRTIME], [0], [whether to use gethrtime])
],
[AC_MSG_RESULT(no)
- AC_DEFINE([USE_GETHRTIME], [1], [whether to use gethrtime])
]
)
fi
More information about the varnish-commit
mailing list