root/src/noit_config.h.in

Revision 5a9b91bc0a14543e0995eba973fbeacc05aaee8b, 5.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

svn merge -r 327:330 https://labs.omniti.com/reconnoiter/branches/dev/udns .

closes #38

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