aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-16 12:06:32 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-16 12:06:32 -0400
commitc93cd81a3372f50fb5b5c8b8668536c125dce463 (patch)
treef9bfd2a13fee94bfbfc86fdff047f23e52bbf162
parent2e26caa8568001b33a969efc46f6911278686e0e (diff)
define feature test macro
-rw-r--r--Touch.hsc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Touch.hsc b/Touch.hsc
index 689c58765..f0c4debb3 100644
--- a/Touch.hsc
+++ b/Touch.hsc
@@ -22,6 +22,10 @@ import Foreign.C
#include <sys/stat.h>
#include <fcntl.h>
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE >= 200809L
+#endif
+
data TimeSpec = TimeSpec CTime CLong
instance Storable TimeSpec where