1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 1998-2005
5 * Include this file into sources which should not need any non-Posix services.
6 * That includes most RTS C sources.
7 * ---------------------------------------------------------------------------*/
12 #include <ghcplatform.h>
14 #define _POSIX_C_SOURCE 200112L
15 #define _XOPEN_SOURCE 600
17 #if defined(darwin_HOST_OS)
18 /* If we don't define this the including sysctl breaks with things like
19 /usr/include/bsm/audit.h:224:0:
20 error: syntax error before 'u_char'
22 #define _DARWIN_C_SOURCE 1
25 #endif /* POSIXSOURCE_H */