root/src/noit_config.h.in

Revision 8a9cddfb29f89ab8c272465be08b0bc5f54dd896, 6.2 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 4 years ago)

patch from Piotr Sikora, fixes #74

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