From c93cd81a3372f50fb5b5c8b8668536c125dce463 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 16 Mar 2011 12:06:32 -0400 Subject: [PATCH] define feature test macro --- Touch.hsc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Touch.hsc b/Touch.hsc index 689c58765f..f0c4debb33 100644 --- a/Touch.hsc +++ b/Touch.hsc @@ -22,6 +22,10 @@ import Foreign.C #include #include +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE >= 200809L +#endif + data TimeSpec = TimeSpec CTime CLong instance Storable TimeSpec where