root/src/noit_config.h.in

Revision 451a0e07f83d6599e8716c96d353c9737726a91b, 5.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

better detection and correct use of POSIX.1c getpwnam_r

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