Updated collectd to 4.4.4
[openwrt/svn-archive/archive.git] / XOrg / headers / native / src / X11 / Xosdefs.h
1 /*
2 * O/S-dependent (mis)feature macro definitions
3 *
4 * $XdotOrg: proto/X11/Xosdefs.h,v 1.7 2005/11/08 06:33:25 jkj Exp $
5 * $Xorg: Xosdefs.h,v 1.5 2001/02/09 02:03:23 xorgcvs Exp $
6 *
7 Copyright 1991, 1998 The Open Group
8
9 Permission to use, copy, modify, distribute, and sell this software and its
10 documentation for any purpose is hereby granted without fee, provided that
11 the above copyright notice appear in all copies and that both that
12 copyright notice and this permission notice appear in supporting
13 documentation.
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 Except as contained in this notice, the name of The Open Group shall not be
26 used in advertising or otherwise to promote the sale, use or other dealings
27 in this Software without prior written authorization from The Open Group.
28 */
29 /* $XFree86: xc/include/Xosdefs.h,v 3.20 2002/05/31 18:45:39 dawes Exp $ */
30
31 #ifndef _XOSDEFS_H_
32 #define _XOSDEFS_H_
33
34 /*
35 * X_NOT_STDC_ENV means does not have ANSI C header files. Lack of this
36 * symbol does NOT mean that the system has stdarg.h.
37 *
38 * X_NOT_POSIX means does not have POSIX header files. Lack of this
39 * symbol does NOT mean that the POSIX environment is the default.
40 * You may still have to define _POSIX_SOURCE to get it.
41 */
42
43 #ifdef NOSTDHDRS
44 #define X_NOT_POSIX
45 #define X_NOT_STDC_ENV
46 #endif
47
48 #ifdef sony
49 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV)
50 #define X_NOT_POSIX
51 #endif
52 #endif
53
54 #ifdef UTEK
55 #define X_NOT_POSIX
56 #define X_NOT_STDC_ENV
57 #endif
58
59 #ifdef vax
60 #ifndef ultrix /* assume vanilla BSD */
61 #define X_NOT_POSIX
62 #define X_NOT_STDC_ENV
63 #endif
64 #endif
65
66 #ifdef luna
67 #define X_NOT_POSIX
68 #define X_NOT_STDC_ENV
69 #endif
70
71 #ifdef Mips
72 #define X_NOT_POSIX
73 #define X_NOT_STDC_ENV
74 #endif
75
76 #ifdef USL
77 #ifdef SYSV /* (release 3.2) */
78 #define X_NOT_POSIX
79 #define X_NOT_STDC_ENV
80 #endif
81 #endif
82
83 #ifdef _SCO_DS
84 #ifndef __SCO__
85 #define __SCO__
86 #endif
87 #endif
88
89 #ifdef i386
90 #ifdef SYSV
91 #if !defined(ISC) && !defined(__SCO__) && !defined(_SEQUENT_) && \
92 !defined(__UNIXWARE__) && !defined(sun)
93 #if !defined(_POSIX_SOURCE)
94 #define X_NOT_POSIX
95 #endif
96 #define X_NOT_STDC_ENV
97 #endif
98 #endif
99 #endif
100
101 #ifdef MOTOROLA
102 #ifdef SYSV
103 #define X_NOT_STDC_ENV
104 #endif
105 #endif
106
107 #ifdef sun
108 /* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
109 * This check allows non-Imake configured programs to build correctly.
110 */
111 #if defined(__SVR4) && !defined(SVR4)
112 #define SVR4 1
113 #endif
114 #ifdef SVR4
115 /* define this to whatever it needs to be */
116 #define X_POSIX_C_SOURCE 199300L
117 #endif
118 #endif
119
120 #ifdef WIN32
121 #ifndef _POSIX_
122 #define X_NOT_POSIX
123 #endif
124 #endif
125
126 #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
127 #define X_NOT_POSIX
128 #define X_NOT_STDC_ENV
129 #endif
130
131 #ifdef __UNIXOS2__
132 #define USGISH
133 #define NULL_NOT_ZERO
134 #endif
135
136 #ifdef __DARWIN__
137 #define NULL_NOT_ZERO
138 #endif
139
140 #ifdef __GNU__
141 #ifndef PATH_MAX
142 #define PATH_MAX 4096
143 #endif
144 #ifndef MAXPATHLEN
145 #define MAXPATHLEN 4096
146 #endif
147 #endif
148
149 #if defined(__SCO__) || defined(__UNIXWARE__)
150 # ifndef PATH_MAX
151 # define PATH_MAX 1024
152 # endif
153 # ifndef MAXPATHLEN
154 # define MAXPATHLEN 1024
155 # endif
156 #endif
157
158 #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \
159 || defined(__Darwin__) || defined(__DragonFly__)
160 # ifndef CSRG_BASED
161 # define CSRG_BASED
162 # endif
163 #endif
164
165 #endif /* _XOSDEFS_H_ */
166