root/src/noit_config.h.in

Revision b5eb9e570dc20e99400c64eee4a5a0ae787c4226, 6.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 2 years ago)

Sol10 doesn't define this, so we need to

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2009, 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 DTRACE_ENABLED
40 #ifndef DTRACE_ENABLED
41 #define DTRACE_PROBES_DISABLED 1
42 #endif
43 #undef MODULEEXT
44 #undef MODULES_DIR
45 #undef DEFAULT_EVENTER
46 #undef ETC_DIR
47
48 #undef HAVE_FCNTL_H
49 #undef HAVE_UNISTD_H
50 #undef HAVE_SYS_TYPES_H
51 #undef HAVE_SYS_WAIT_H
52 #undef HAVE_TERM_H
53 #undef HAVE_TERMIO_H
54 #undef HAVE_TERMIOS_H
55 #undef TPUTS_TAKES_CHAR
56 #undef TGOTO_TAKES_CHAR
57 #undef HAVE_SYS_IOCTL_COMPAT_H
58 #undef HAVE_SYS_IOCTL_H
59 #undef HAVE_SYS_FILIO_H
60 #undef HAVE_STROPTS_H
61 #undef HAVE_SYS_STREAM_H
62 #undef HAVE_UTIL_H
63 #undef HAVE_BSD_LIBUTIL_H
64 #undef HAVE_LIBUTIL_H
65 #undef HAVE_CURSES_H
66 #undef HAVE_DIRENT_H
67 #undef HAVE_PWD_H
68 #undef HAVE_PTY_H
69 #undef HAVE_ERRNO_H
70 #undef HAVE_STRING_H
71 #undef HAVE_STDLIB_H
72 #undef HAVE_SYS_PARAM_H
73 #undef HAVE_SEMAPHORE_H
74 #undef HAVE_ALLOCA_H
75 #undef HAVE_TIME_H
76 #undef HAVE_SYS_STAT_H
77 #undef HAVE_SYS_RESOURCE_H
78 #undef HAVE_SYS_CDEFS_H
79 #undef HAVE_LIBKERN_OSATOMIC_H
80 #undef HAVE_NETINET_IN_SYSTM_H
81 #undef HAVE_POSIX_READDIR_R
82 #undef HAVE_MYSQL_H
83 #undef HAVE_MYSQL_MYSQL_H
84 #undef HAVE_INT64_T
85 #undef HAVE_INTXX_T
86 #undef HAVE_LONG_LONG_INT
87 #undef HAVE_UINTXX_T
88 #undef HAVE_U_INT
89 #undef HAVE_U_INT64_T
90 #undef HAVE_U_INTXX_T
91 #undef HAVE_UUID_UNPARSE_LOWER
92 #define IFS_CH '/'
93 #undef WORKING_SEM_INIT
94
95 #undef HAVE_GETPWNAM_R
96 #undef HAVE_GETPWNAM_R_POSIX
97 #undef HAVE_GETGRNAM_R
98 #undef HAVE_GETGRNAM_R_POSIX
99
100 #ifdef HAVE_STRING_H
101 #include <string.h>
102 #endif
103 #ifdef HAVE_STDLIB_H
104 #include <stdlib.h>
105 #endif
106 #ifdef HAVE_SYS_PARAM_H
107 #include <sys/param.h>
108 #endif
109 #ifdef HAVE_SYS_TYPES_H
110 #include <sys/types.h>
111 #endif
112 #ifdef HAVE_SYS_STAT_H
113 #include <sys/stat.h>
114 #endif
115 #ifdef HAVE_SYS_RESOURCE_H
116 #include <sys/resource.h>
117 #endif
118 #ifdef HAVE_ALLOCA_H
119 #include <alloca.h>
120 #endif
121
122 #undef HAVE_ISSETUGID
123 #undef HAVE_STRLCPY
124 #undef HAVE_STRNSTRN
125 #undef HAVE_OPENPTY
126 #undef HAVE_DECL_OPENPTY
127 #undef HAVE_INET_PTON
128 #undef HAVE_INET_NTOP
129 #undef HAVE_GETOPT
130 #undef HAVE_POLL
131 #undef HAVE_VASPRINTF
132
133 /* Kernel kqueue() support */
134 #undef HAVE_KQUEUE
135 /* Kernel epoll_create() support */
136 #undef HAVE_EPOLL
137 /* Kernel port_create() support */
138 #undef HAVE_PORTS
139
140 /* The number of bytes in a char.  */
141 #undef SIZEOF_CHAR
142
143 /* The number of bytes in a int.  */
144 #undef SIZEOF_INT
145
146 /* The number of bytes in a size_t.  */
147 #undef SIZEOF_SIZE_T
148
149
150 /* The number of bytes in a long int.  */
151 #undef SIZEOF_LONG_INT
152
153 /* The number of bytes in a long long int.  */
154 #undef SIZEOF_LONG_LONG_INT
155
156 /* The number of bytes in a short int.  */
157 #undef SIZEOF_SHORT_INT
158
159 /* The number of bytes in a void *.  */
160 #undef SIZEOF_VOID_P
161
162 /* The number of bytes in a void * (workaround for OpenBSD). */
163 #undef SIZEOF_VOID__
164 #if !defined(SIZEOF_VOID_P) && defined(SIZEOF_VOID__)
165 #  define SIZEOF_VOID_P SIZEOF_VOID__
166 #endif
167
168 #ifndef HAVE_U_INT
169 typedef unsigned int u_int;
170 #endif
171
172 #undef HAVE_INTXX_T
173 #ifndef HAVE_INTXX_T
174 #if (SIZEOF_CHAR == 1)
175 typedef char int8_t;
176 #else
177 #error "8 bit int type not found."
178 #endif
179 #if (SIZEOF_SHORT_INT == 2)
180 typedef short int int16_t;
181 #else
182 #ifdef _CRAY
183 typedef long int16_t;
184 #else
185 #warning "16 bit int type not found."
186 #endif /* _CRAY */
187 #endif
188 #if (SIZEOF_INT == 4)
189 typedef int int32_t;
190 #else
191 #ifdef _CRAY
192 typedef long int32_t;
193 #else
194 #error "32 bit int type not found."
195 #endif /* _CRAY */
196 #endif
197 #endif
198
199 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
200 #ifndef HAVE_U_INTXX_T
201 #ifdef HAVE_UINTXX_T
202 typedef uint8_t u_int8_t;
203 typedef uint16_t u_int16_t;
204 typedef uint32_t u_int32_t;
205 #define HAVE_U_INTXX_T 1
206 #else
207 #if (SIZEOF_CHAR == 1)
208 typedef unsigned char u_int8_t;
209 #else
210 #error "8 bit int type not found."
211 #endif
212 #if (SIZEOF_SHORT_INT == 2)
213 typedef unsigned short int u_int16_t;
214 #else
215 #ifdef _CRAY
216 typedef unsigned long u_int16_t;
217 #else
218 #warning "16 bit int type not found."
219 #endif
220 #endif
221 #if (SIZEOF_INT == 4)
222 typedef unsigned int u_int32_t;
223 #else
224 #ifdef _CRAY
225 typedef unsigned long u_int32_t;
226 #else
227 #error "32 bit int type not found."
228 #endif
229 #endif
230 #endif
231 #endif
232
233 /* 64-bit types */
234 #ifndef HAVE_INT64_T
235 #if (SIZEOF_LONG_INT == 8)
236 typedef long int int64_t;
237 #define HAVE_INT64_T 1
238 #else
239 #if (SIZEOF_LONG_LONG_INT == 8)
240 typedef long long int int64_t;
241 #define HAVE_INT64_T 1
242 #define HAVE_LONG_LONG_INT
243 #endif
244 #endif
245 #endif
246 #ifndef HAVE_U_INT64_T
247 #if (SIZEOF_LONG_INT == 8)
248 typedef unsigned long int u_int64_t;
249 #define HAVE_U_INT64_T 1
250 #else
251 #if (SIZEOF_LONG_LONG_INT == 8)
252 typedef unsigned long long int u_int64_t;
253 #define HAVE_U_INT64_T 1
254 #endif
255 #endif
256 #endif
257
258 /* BIND, Kerberos and Berkeley DB use __BIT_TYPES_DEFINED__ to protect
259  * against multiple redefinitions of these types (u_int{8,16,32,64}_t)
260  * and so shall we.
261  */
262 #ifndef __BIT_TYPES_DEFINED__
263 #define __BIT_TYPES_DEFINED__
264 #endif
265
266 #if (SIZEOF_VOID_P == 8)
267 typedef u_int64_t vpsized_uint;
268 typedef int64_t vpsized_int;
269 #elif (SIZEOF_VOID_P == 4)
270 typedef u_int32_t vpsized_uint;
271 typedef int32_t vpsized_int;
272 #else
273 #error Unsupported size of void ptr
274 #endif
275
276 #ifndef PATH_MAX
277 #define PATH_MAX MAXPATHLEN
278 #endif
279
280 typedef enum { noit_false = 0, noit_true } noit_boolean;
281
282 #endif
Note: See TracBrowser for help on using the browser.