summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-03-17 14:22:39 -0700
committerEric Anholt <eric@anholt.net>2008-04-04 08:01:25 -0700
commitd1de3dda8efe501d4192c8a99c34ab4265316c32 (patch)
tree4a4402fd4c5b1146bf7f9970dbd3ce5f0102754a
parentec17900f52bbd25d07566834756e5c7e832e0463 (diff)
Fix clock_gettime presence detect on FreeBSD.
For non-Linux, _POSIX_C_SOURCE and friends restrict symbols defined rather than enabling defines of symbols. Additionally, CLOCK_MONOTONIC was apparently added to the standard around 2000 anyway, not 1993.
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 985c8e227..1431f4b8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -722,7 +722,9 @@ if ! test "x$have_clock_gettime" = xno; then
LIBS="$CLOCK_LIBS"
AC_RUN_IFELSE([
+#ifdef __linux__
#define _POSIX_C_SOURCE 199309L
+#endif
#include <time.h>
int main(int argc, char *argv[[]]) {