blob: 56a428af012536aea5baf950f7d283e3b39afc60 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/* ISC license. */
#ifndef NONPOSIX_H
#define NONPOSIX_H
/* Drop all pretense of standardness: some libc headers are *more*
broken when you define standard feature test macros than when
you don't (I'm looking at you, FreeBSD). */
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE
/* Solaris: the socket API is not POSIX unless you enable this */
#ifndef _XPG4_2
#define _XPG4_2
#endif
#ifndef _XPG6
#define _XPG6
#endif
/* Solaris: for settimeofday() and similar. Notice how you
have to define by hand a macro with double underscores. */
#ifndef __EXTENSIONS__
#define __EXTENSIONS__
#endif
/* GNU: most extensions are unavailable unless you enable this */
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
#endif
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
/* NetBSD: of course they had to have their own macros. */
#ifndef _NETBSD_SOURCE
#define _NETBSD_SOURCE
#endif
#ifndef _INCOMPLETE_XOPEN_C063
#define _INCOMPLETE_XOPEN_C063
#endif
/* old versions of BSD: system headers are not self-contained,
starting with sys/types.h normally always works. */
#include <sys/types.h>
#endif
|