2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
26 * $TOG: EUSCompat.h /main/4 1998/04/03 17:11:57 mgreess $
28 * RESTRICTED CONFIDENTIAL INFORMATION:
30 * The information in this document is subject to special
31 * restrictions in a confidential disclosure agreement bertween
32 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
33 * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
34 * Sun's specific written approval. This documment and all copies
35 * and derivative works thereof must be returned or destroyed at
38 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
52 ** System V R4 based systems define the stuff we need in
53 ** sys/types.h. Include that and then we are done.
55 #if defined(HPUX) || defined(__linux__) || defined(SunOS)
56 #include <sys/types.h>
59 #if defined(sun) && defined(_XOPEN_SOURCE)
61 #define B_TRUE _B_TRUE
64 #define B_FALSE _B_FALSE
66 #endif /* sun && _XOPEN_SOURCE */
69 ** HPUX defines most of what we need, if we set the right
70 ** include options before including the system files.
74 #ifndef _INCLUDE_POSIX_SOURCE
75 #define _INCLUDE_POSIX_SOURCE
78 #ifndef _INCLUDE_XOPEN_SOURCE
79 #define _INCLUDE_XOPEN_SOURCE
82 #ifndef _INCLUDE_AES_SOURCE
83 #define _INCLUDE_AES_SOURCE
86 #ifndef _INCLUDE_HPUX_SOURCE
87 #define _INCLUDE_HPUX_SOURCE
91 typedef unsigned long ulong_t;
93 typedef unsigned char uchar_t;
94 typedef enum {B_FALSE, B_TRUE} boolean_t;
96 #define _SC_PAGESIZE _SC_PAGE_SIZE
99 #include <sys/param.h>
102 #define MAXNAMELEN 256
106 #if defined(__linux__) || defined(CSRG_BASED)
107 typedef enum {B_FALSE, B_TRUE} boolean_t;
108 #define MAXNAMELEN 256
113 ** AIX, like HPUX defines most of what we need.
121 #ifndef _BSD_INCLUDES
122 #define _BSD_INCLUDES
125 #include <sys/types.h>
127 #define _SC_PAGESIZE _SC_PAGE_SIZE
131 #include <sys/param.h>
134 #define MAXNAMELEN 256
137 typedef enum {B_FALSE, B_TRUE} boolean_t;