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