root/src/noit_config.h.in

Revision 327712134f74d1a3209f8beee3b0f593e721c8f6, 5.5 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

cleanup solaris bits, refs #32

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *    * Redistributions of source code must retain the above copyright
10  *      notice, this list of conditions and the following disclaimer.
11  *    * Redistributions in binary form must reproduce the above
12  *      copyright notice, this list of conditions and the following
13  *      disclaimer in the documentation and/or other materials provided
14  *      with the distribution.
15  *    * Neither the name OmniTI Computer Consulting, Inc. nor the names
16  *      of its contributors may be used to endorse or promote products
17  *      derived from this software without specific prior written
18  *      permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #ifndef __NOIT_CONFIG_H
34 #define __NOIT_CONFIG_H
35
36 /* define inline unless that is what the compiler already calls it. */
37 #undef inline
38
39 #undef MODULEEXT
40 #undef MODULES_DIR
41 #undef DEFAULT_EVENTER
42 #undef ETC_DIR
43
44 #undef HAVE_FCNTL_H
45 #undef HAVE_UNISTD_H
46 #undef HAVE_SYS_TYPES_H
47 #undef HAVE_TERM_H
48 #undef HAVE_TERMIO_H
49 #undef HAVE_TERMIOS_H
50 #undef HAVE_SYS_IOCTL_COMPAT_H
51 #undef HAVE_SYS_FILIO_H
52 #undef HAVE_STROPTS_H
53 #undef HAVE_SYS_STREAM_H
54 #undef HAVE_UTIL_H
55 #undef HAVE_CURSES_H
56 #undef HAVE_DIRENT_H
57 #undef HAVE_PWD_H
58 #undef HAVE_ERRNO_H
59 #undef HAVE_STRING_H
60 #undef HAVE_STDLIB_H
61 #undef HAVE_SYS_PARAM_H
62 #undef HAVE_SEMAPHORE_H
63 #undef HAVE)ALLOA_H
64 #undef HAVE_TIME_H
65 #undef HAVE_SYS_STAT_H
66 #undef HAVE_SYS_RESOURCE_H
67 #undef HAVE_SYS_CDEFS_H
68 #undef HAVE_LIBKERN_OSATOMIC_H
69 #undef HAVE_NETINET_IN_SYSTM_H
70 #undef HAVE_INT64_T
71 #undef HAVE_INTXX_T
72 #undef HAVE_LONG_LONG_INT
73 #undef HAVE_UINTXX_T
74 #undef HAVE_U_INT
75 #undef HAVE_U_INT64_T
76 #undef HAVE_U_INTXX_T
77 #undef HAVE_UUID_UNPARSE_LOWER
78 #define IFS_CH '/'
79 #undef BROKEN_SEM_INIT
80
81 #ifdef HAVE_STRING_H
82 #include <string.h>
83 #endif
84 #ifdef HAVE_STDLIB_H
85 #include <stdlib.h>
86 #endif
87 #ifdef HAVE_SYS_PARAM_H
88 #include <sys/param.h>
89 #endif
90 #ifdef HAVE_SYS_TYPES_H
91 #include <sys/types.h>
92 #endif
93 #ifdef HAVE_SYS_STAT_H
94 #include <sys/stat.h>
95 #endif
96 #ifdef HAVE_SYS_RESOURCE_H
97 #include <sys/resource.h>
98 #endif
99
100 #undef HAVE_ISSETUGID
101 #undef HAVE_STRLCPY
102 #undef HAVE_STRNSTRN
103 #undef HAVE_OPENPTY
104
105 /* Kernel kqueue() support */
106 #undef HAVE_KQUEUE
107 /* Kernel epoll_create() support */
108 #undef HAVE_EPOLL
109
110 /* The number of bytes in a char.  */
111 #undef SIZEOF_CHAR
112
113 /* The number of bytes in a int.  */
114 #undef SIZEOF_INT
115
116 /* The number of bytes in a size_t.  */
117 #undef SIZEOF_SIZE_T
118
119
120 /* The number of bytes in a long int.  */
121 #undef SIZEOF_LONG_INT
122
123 /* The number of bytes in a long long int.  */
124 #undef SIZEOF_LONG_LONG_INT
125
126 /* The number of bytes in a short int.  */
127 #undef SIZEOF_SHORT_INT
128
129 /* The number of bytes in a void *.  */
130 #undef SIZEOF_VOID_P
131
132 #ifndef HAVE_U_INT
133 typedef unsigned int u_int;
134 #endif
135
136 #undef HAVE_INTXX_T
137 #ifndef HAVE_INTXX_T
138 #if (SIZEOF_CHAR == 1)
139 typedef char int8_t;
140 #else
141 #error "8 bit int type not found."
142 #endif
143 #if (SIZEOF_SHORT_INT == 2)
144 typedef short int int16_t;
145 #else
146 #ifdef _CRAY
147 typedef long int16_t;
148 #else
149 #warning "16 bit int type not found."
150 #endif /* _CRAY */
151 #endif
152 #if (SIZEOF_INT == 4)
153 typedef int int32_t;
154 #else
155 #ifdef _CRAY
156 typedef long int32_t;
157 #else
158 #error "32 bit int type not found."
159 #endif /* _CRAY */
160 #endif
161 #endif
162
163 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
164 #ifndef HAVE_U_INTXX_T
165 #ifdef HAVE_UINTXX_T
166 typedef uint8_t u_int8_t;
167 typedef uint16_t u_int16_t;
168 typedef uint32_t u_int32_t;
169 #define HAVE_U_INTXX_T 1
170 #else
171 #if (SIZEOF_CHAR == 1)
172 typedef unsigned char u_int8_t;
173 #else
174 #error "8 bit int type not found."
175 #endif
176 #if (SIZEOF_SHORT_INT == 2)
177 typedef unsigned short int u_int16_t;
178 #else
179 #ifdef _CRAY
180 typedef unsigned long u_int16_t;
181 #else
182 #warning "16 bit int type not found."
183 #endif
184 #endif
185 #if (SIZEOF_INT == 4)
186 typedef unsigned int u_int32_t;
187 #else
188 #ifdef _CRAY
189 typedef unsigned long u_int32_t;
190 #else
191 #error "32 bit int type not found."
192 #endif
193 #endif
194 #endif
195 #endif
196
197 /* 64-bit types */
198 #ifndef HAVE_INT64_T
199 #if (SIZEOF_LONG_INT == 8)
200 typedef long int int64_t;
201 #define HAVE_INT64_T 1
202 #else
203 #if (SIZEOF_LONG_LONG_INT == 8)
204 typedef long long int int64_t;
205 #define HAVE_INT64_T 1
206 #define HAVE_LONG_LONG_INT
207 #endif
208 #endif
209 #endif
210 #ifndef HAVE_U_INT64_T
211 #if (SIZEOF_LONG_INT == 8)
212 typedef unsigned long int u_int64_t;
213 #define HAVE_U_INT64_T 1
214 #else
215 #if (SIZEOF_LONG_LONG_INT == 8)
216 typedef unsigned long long int u_int64_t;
217 #define HAVE_U_INT64_T 1
218 #endif
219 #endif
220 #endif
221
222 #if (SIZEOF_VOID_P == 8)
223 typedef u_int64_t vpsized_uint;
224 typedef int64_t vpsized_int;
225 #elif (SIZEOF_VOID_P == 4)
226 typedef u_int32_t vpsized_uint;
227 typedef int32_t vpsized_int;
228 #else
229 #error Unsupported size of void ptr
230 #endif
231
232 #ifndef PATH_MAX
233 #define PATH_MAX MAXPATHLEN
234 #endif
235
236 #endif
Note: See TracBrowser for help on using the browser.