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