root/src/noit_config.h.in

Revision 4f911fe3893494fb9c63f3751aa611c380056466, 5.9 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 5 years ago)

need this on Solaris

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