summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-07-17 14:33:33 +0200
committerDiego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>2009-07-17 14:33:33 +0200
commita6d67187126ef37b69b0d8d94dfeebeb364a8444 (patch)
tree39952c2fe0d16227b8ce1d721713a31f2e1d5872
parent673112b192a9494ea96f7daca061b080db5d3977 (diff)
Request explicitly POSIX.1-2001 for clock_gettime.
This might actually call for a rewrite of system extensions handling.
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 112a1a8f..9b49f23e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -74,6 +74,9 @@ case $host in
AC_DEFINE(_XOPEN_SOURCE, 600, Needed to get declarations for msg_control and msg_controllen on Solaris)
AC_DEFINE(__EXTENSIONS__, 1, Needed to get declarations for msg_control and msg_controllen on Solaris)
;;
+ *-*-darwin* )
+ AC_DEFINE([_POSIX_C_SOURCE], [200112L], [Needed to get clock_gettime on Mac OS X])
+ ;;
esac
AM_SILENT_RULES([yes])