define feature test macro
This commit is contained in:
parent
2e26caa856
commit
c93cd81a33
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ import Foreign.C
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
#ifndef _POSIX_C_SOURCE
|
||||||
|
#define _POSIX_C_SOURCE >= 200809L
|
||||||
|
#endif
|
||||||
|
|
||||||
data TimeSpec = TimeSpec CTime CLong
|
data TimeSpec = TimeSpec CTime CLong
|
||||||
|
|
||||||
instance Storable TimeSpec where
|
instance Storable TimeSpec where
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue