root/src/noit_config.h.in

Revision 3496ae7825b53d96d2c946d0f8450f25516daf5a, 6.0 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

fixes #163

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