2 * O/S-dependent (mis)feature macro definitions
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 $
7 Copyright 1991, 1998 The Open Group
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
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
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.
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.
29 /* $XFree86: xc/include/Xosdefs.h,v 3.20 2002/05/31 18:45:39 dawes Exp $ */
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.
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.
45 #define X_NOT_STDC_ENV
49 #if !defined(SYSTYPE_SYSV) && !defined(_SYSTYPE_SYSV)
56 #define X_NOT_STDC_ENV
60 #ifndef ultrix /* assume vanilla BSD */
62 #define X_NOT_STDC_ENV
68 #define X_NOT_STDC_ENV
73 #define X_NOT_STDC_ENV
77 #ifdef SYSV /* (release 3.2) */
79 #define X_NOT_STDC_ENV
91 #if !defined(ISC) && !defined(__SCO__) && !defined(_SEQUENT_) && \
92 !defined(__UNIXWARE__) && !defined(sun)
93 #if !defined(_POSIX_SOURCE)
96 #define X_NOT_STDC_ENV
103 #define X_NOT_STDC_ENV
108 /* Imake configs define SVR4 on Solaris, but cc & gcc only define __SVR4
109 * This check allows non-Imake configured programs to build correctly.
111 #if defined(__SVR4) && !defined(SVR4)
115 /* define this to whatever it needs to be */
116 #define X_POSIX_C_SOURCE 199300L
126 #if defined(nec_ews_svr2) || defined(SX) || defined(PC_UX)
128 #define X_NOT_STDC_ENV
133 #define NULL_NOT_ZERO
137 #define NULL_NOT_ZERO
142 #define PATH_MAX 4096
145 #define MAXPATHLEN 4096
149 #if defined(__SCO__) || defined(__UNIXWARE__)
151 # define PATH_MAX 1024
154 # define MAXPATHLEN 1024
158 #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \
159 || defined(__Darwin__) || defined(__DragonFly__)
165 #endif /* _XOSDEFS_H_ */