2 * $XConsortium: Xos.h,v 1.47 91/08/17 17:14:38 rws Exp $
4 * Copyright 1987 by the Massachusetts Institute of Technology
6 * Permission to use, copy, modify, and distribute this software and its
7 * documentation for any purpose and without fee is hereby granted, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of M.I.T. not be used in advertising
11 * or publicity pertaining to distribution of the software without specific,
12 * written prior permission. M.I.T. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * The X Window System is a Trademark of MIT.
20 /* This is a collection of things to try and minimize system dependencies
21 * in a "signficant" number of source files.
27 #include "lndir-Xosdefs.h"
30 * Get major data types (esp. caddr_t)
38 #include <sys/types.h> /* forgot to protect it... */
40 #endif /* __TYPES__ */
42 #if defined(_POSIX_SOURCE) && defined(MOTOROLA)
44 #include <sys/types.h>
47 #include <sys/types.h>
53 * Just about everyone needs the strings routines. We provide both forms here,
54 * index/rindex and strchr/strrchr, so any systems that don't provide them all
55 * need to have #defines here.
58 #ifndef X_NOT_STDC_ENV
61 #define rindex strrchr
66 #define rindex strrchr
70 #define strrchr rindex
76 * Get open(2) constants
93 #else /* X_NOT_POSIX */
94 #if !defined(_POSIX_SOURCE) && defined(macII)
102 #endif /* X_NOT_POSIX else */
111 #include <sys/time.h>
117 #if defined(USG) && !defined(CRAY) && !defined(MOTOROLA)
127 #endif /* USL_SHARELIB */
132 #if defined(_POSIX_SOURCE) && defined(SVR4)
133 /* need to omit _POSIX_SOURCE in order to get what we want in SVR4 */
135 #include <sys/time.h>
136 #define _POSIX_SOURCE
138 #include <sys/time.h>
143 /* use POSIX name for signal */
144 #if defined(X_NOT_POSIX) && defined(SYSV) && !defined(SIGCHLD)
145 #define SIGCHLD SIGCLD
149 #include <sys/bsdtypes.h>