Remove the Unicode alternative for ".." (#3894)
[ghc-hetmet.git] / rts / PosixSource.h
1 /* -----------------------------------------------------------------------------
2  *
3  * (c) The GHC Team, 1998-2005
4  *
5  * Include this file into sources which should not need any non-Posix services.
6  * That includes most RTS C sources.
7  * ---------------------------------------------------------------------------*/
8
9 #ifndef POSIXSOURCE_H
10 #define POSIXSOURCE_H
11
12 #include <ghcplatform.h>
13
14 #define _POSIX_SOURCE   1
15 #define _POSIX_C_SOURCE 199506L
16 #define _XOPEN_SOURCE   500
17 #define _ISOC99_SOURCE
18
19 /* Let's be ISO C99 too... */
20
21 #if defined(darwin_HOST_OS)
22 /* If we don't define this the including sysctl breaks with things like
23     /usr/include/bsm/audit.h:224:0:
24          error: syntax error before 'u_char'
25 */
26 #define _DARWIN_C_SOURCE 1
27 #endif
28
29 #endif /* POSIXSOURCE_H */