xref: /netbsd-src/external/bsd/libevent/include/config.h (revision 0d738af4d5866e9cf53ad51f5c0cdef6a9101160)
1 /*	$NetBSD: config.h,v 1.3 2017/01/31 23:17:40 christos Exp $	*/
2 /* config.h.  Generated from config.h.in by configure.  */
3 /* config.h.in.  Generated from configure.ac by autoheader.  */
4 
5 /* Define if libevent should build without support for a debug mode */
6 /* #undef DISABLE_DEBUG_MODE */
7 
8 /* Define if libevent should not allow replacing the mm functions */
9 /* #undef DISABLE_MM_REPLACEMENT */
10 
11 /* Define if libevent should not be compiled with thread support */
12 /* #undef DISABLE_THREAD_SUPPORT */
13 
14 /* Define to 1 if you have the `accept4' function. */
15 /* #undef HAVE_ACCEPT4 */
16 
17 /* Define to 1 if you have the `arc4random' function. */
18 #define HAVE_ARC4RANDOM 1
19 
20 /* Define to 1 if you have the `arc4random_buf' function. */
21 #define HAVE_ARC4RANDOM_BUF 1
22 
23 /* Define to 1 if you have the <arpa/inet.h> header file. */
24 #define HAVE_ARPA_INET_H 1
25 
26 /* Define to 1 if you have the `clock_gettime' function. */
27 #define HAVE_CLOCK_GETTIME 1
28 
29 /* Define to 1 if you have the declaration of `CTL_KERN', and to 0 if you
30    don't. */
31 #define HAVE_DECL_CTL_KERN 1
32 
33 /* Define to 1 if you have the declaration of `KERN_ARND', and to 0 if you
34    don't. */
35 #define HAVE_DECL_KERN_ARND 1
36 
37 /* Define to 1 if you have the declaration of `KERN_RANDOM', and to 0 if you
38    don't. */
39 #define HAVE_DECL_KERN_RANDOM 0
40 
41 /* Define to 1 if you have the declaration of `RANDOM_UUID', and to 0 if you
42    don't. */
43 #define HAVE_DECL_RANDOM_UUID 0
44 
45 /* Define if /dev/poll is available */
46 /* #undef HAVE_DEVPOLL */
47 
48 /* Define to 1 if you have the <dlfcn.h> header file. */
49 #define HAVE_DLFCN_H 1
50 
51 /* Define if your system supports the epoll system calls */
52 /* #undef HAVE_EPOLL */
53 
54 /* Define to 1 if you have the `epoll_create1' function. */
55 /* #undef HAVE_EPOLL_CREATE1 */
56 
57 /* Define to 1 if you have the `epoll_ctl' function. */
58 /* #undef HAVE_EPOLL_CTL */
59 
60 /* Define to 1 if you have the <errno.h> header file. */
61 #define HAVE_ERRNO_H 1
62 
63 /* Define to 1 if you have ERR_remove_thread_stat(). */
64 #define HAVE_ERR_REMOVE_THREAD_STATE 1
65 
66 /* Define to 1 if you have the `eventfd' function. */
67 /* #undef HAVE_EVENTFD */
68 
69 /* Define if your system supports event ports */
70 /* #undef HAVE_EVENT_PORTS */
71 
72 /* Define to 1 if you have the `fcntl' function. */
73 #define HAVE_FCNTL 1
74 
75 /* Define to 1 if you have the <fcntl.h> header file. */
76 #define HAVE_FCNTL_H 1
77 
78 /* Define to 1 if the system has the type `fd_mask'. */
79 #define HAVE_FD_MASK 1
80 
81 /* Do we have getaddrinfo()? */
82 #define HAVE_GETADDRINFO 1
83 
84 /* Define to 1 if you have the `getegid' function. */
85 #define HAVE_GETEGID 1
86 
87 /* Define to 1 if you have the `geteuid' function. */
88 #define HAVE_GETEUID 1
89 
90 /* Define this if you have any gethostbyname_r() */
91 /* #undef HAVE_GETHOSTBYNAME_R */
92 
93 /* Define this if gethostbyname_r takes 3 arguments */
94 /* #undef HAVE_GETHOSTBYNAME_R_3_ARG */
95 
96 /* Define this if gethostbyname_r takes 5 arguments */
97 /* #undef HAVE_GETHOSTBYNAME_R_5_ARG */
98 
99 /* Define this if gethostbyname_r takes 6 arguments */
100 /* #undef HAVE_GETHOSTBYNAME_R_6_ARG */
101 
102 /* Define to 1 if you have the `getifaddrs' function. */
103 #define HAVE_GETIFADDRS 1
104 
105 /* Define to 1 if you have the `getnameinfo' function. */
106 #define HAVE_GETNAMEINFO 1
107 
108 /* Define to 1 if you have the `getprotobynumber' function. */
109 #define HAVE_GETPROTOBYNUMBER 1
110 
111 /* Define to 1 if you have the `getservbyname' function. */
112 #define HAVE_GETSERVBYNAME 1
113 
114 /* Define to 1 if you have the `gettimeofday' function. */
115 #define HAVE_GETTIMEOFDAY 1
116 
117 /* Define to 1 if you have the <ifaddrs.h> header file. */
118 #define HAVE_IFADDRS_H 1
119 
120 /* Define to 1 if you have the `inet_ntop' function. */
121 #define HAVE_INET_NTOP 1
122 
123 /* Define to 1 if you have the `inet_pton' function. */
124 #define HAVE_INET_PTON 1
125 
126 /* Define to 1 if you have the <inttypes.h> header file. */
127 #define HAVE_INTTYPES_H 1
128 
129 /* Define to 1 if you have the `issetugid' function. */
130 #define HAVE_ISSETUGID 1
131 
132 /* Define to 1 if you have the `kqueue' function. */
133 #define HAVE_KQUEUE 1
134 
135 /* Define if the system has zlib */
136 #define HAVE_LIBZ 1
137 
138 /* Define to 1 if you have the `mach_absolute_time' function. */
139 /* #undef HAVE_MACH_ABSOLUTE_TIME */
140 
141 /* Define to 1 if you have the <mach/mach_time.h> header file. */
142 /* #undef HAVE_MACH_MACH_TIME_H */
143 
144 /* Define to 1 if you have the <memory.h> header file. */
145 #define HAVE_MEMORY_H 1
146 
147 /* Define to 1 if you have the `mmap' function. */
148 #define HAVE_MMAP 1
149 
150 /* Define to 1 if you have the `nanosleep' function. */
151 #define HAVE_NANOSLEEP 1
152 
153 /* Define to 1 if you have the <netdb.h> header file. */
154 #define HAVE_NETDB_H 1
155 
156 /* Define to 1 if you have the <netinet/in6.h> header file. */
157 /* #undef HAVE_NETINET_IN6_H */
158 
159 /* Define to 1 if you have the <netinet/in.h> header file. */
160 #define HAVE_NETINET_IN_H 1
161 
162 /* Define to 1 if you have the <netinet/tcp.h> header file. */
163 #define HAVE_NETINET_TCP_H 1
164 
165 /* Define if the system has openssl */
166 #define HAVE_OPENSSL 1
167 
168 /* Define to 1 if you have the `pipe' function. */
169 #define HAVE_PIPE 1
170 
171 /* Define to 1 if you have the `pipe2' function. */
172 #define HAVE_PIPE2 1
173 
174 /* Define to 1 if you have the `poll' function. */
175 #define HAVE_POLL 1
176 
177 /* Define to 1 if you have the <poll.h> header file. */
178 #define HAVE_POLL_H 1
179 
180 /* Define to 1 if you have the `port_create' function. */
181 /* #undef HAVE_PORT_CREATE */
182 
183 /* Define to 1 if you have the <port.h> header file. */
184 /* #undef HAVE_PORT_H */
185 
186 /* Define if you have POSIX threads libraries and header files. */
187 /* #undef HAVE_PTHREAD */
188 
189 /* Define if we have pthreads on this system */
190 #define HAVE_PTHREADS 1
191 
192 /* Define to 1 if you have the `putenv' function. */
193 #define HAVE_PUTENV 1
194 
195 /* Define to 1 if the system has the type `sa_family_t'. */
196 #define HAVE_SA_FAMILY_T 1
197 
198 /* Define to 1 if you have the `select' function. */
199 #define HAVE_SELECT 1
200 
201 /* Define to 1 if you have the `sendfile' function. */
202 /* #undef HAVE_SENDFILE */
203 
204 /* Define to 1 if you have the `setenv' function. */
205 #define HAVE_SETENV 1
206 
207 /* Define if F_SETFD is defined in <fcntl.h> */
208 #define HAVE_SETFD 1
209 
210 /* Define to 1 if you have the `setrlimit' function. */
211 #define HAVE_SETRLIMIT 1
212 
213 /* Define to 1 if you have the `sigaction' function. */
214 #define HAVE_SIGACTION 1
215 
216 /* Define to 1 if you have the `signal' function. */
217 #define HAVE_SIGNAL 1
218 
219 /* Define to 1 if you have the `splice' function. */
220 /* #undef HAVE_SPLICE */
221 
222 /* Define to 1 if you have the <stdarg.h> header file. */
223 #define HAVE_STDARG_H 1
224 
225 /* Define to 1 if you have the <stddef.h> header file. */
226 #define HAVE_STDDEF_H 1
227 
228 /* Define to 1 if you have the <stdint.h> header file. */
229 #define HAVE_STDINT_H 1
230 
231 /* Define to 1 if you have the <stdlib.h> header file. */
232 #define HAVE_STDLIB_H 1
233 
234 /* Define to 1 if you have the <strings.h> header file. */
235 #define HAVE_STRINGS_H 1
236 
237 /* Define to 1 if you have the <string.h> header file. */
238 #define HAVE_STRING_H 1
239 
240 /* Define to 1 if you have the `strlcpy' function. */
241 #define HAVE_STRLCPY 1
242 
243 /* Define to 1 if you have the `strsep' function. */
244 #define HAVE_STRSEP 1
245 
246 /* Define to 1 if you have the `strtok_r' function. */
247 #define HAVE_STRTOK_R 1
248 
249 /* Define to 1 if you have the `strtoll' function. */
250 #define HAVE_STRTOLL 1
251 
252 /* Define to 1 if the system has the type `struct addrinfo'. */
253 #define HAVE_STRUCT_ADDRINFO 1
254 
255 /* Define to 1 if the system has the type `struct in6_addr'. */
256 #define HAVE_STRUCT_IN6_ADDR 1
257 
258 /* Define to 1 if `s6_addr16' is a member of `struct in6_addr'. */
259 /* #undef HAVE_STRUCT_IN6_ADDR_S6_ADDR16 */
260 
261 /* Define to 1 if `s6_addr32' is a member of `struct in6_addr'. */
262 /* #undef HAVE_STRUCT_IN6_ADDR_S6_ADDR32 */
263 
264 /* Define to 1 if the system has the type `struct sockaddr_in6'. */
265 #define HAVE_STRUCT_SOCKADDR_IN6 1
266 
267 /* Define to 1 if `sin6_len' is a member of `struct sockaddr_in6'. */
268 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
269 
270 /* Define to 1 if `sin_len' is a member of `struct sockaddr_in'. */
271 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
272 
273 /* Define to 1 if the system has the type `struct sockaddr_storage'. */
274 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
275 
276 /* Define to 1 if `ss_family' is a member of `struct sockaddr_storage'. */
277 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
278 
279 /* Define to 1 if `__ss_family' is a member of `struct sockaddr_storage'. */
280 /* #undef HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY */
281 
282 /* Define to 1 if the system has the type `struct so_linger'. */
283 /* #undef HAVE_STRUCT_SO_LINGER */
284 
285 /* Define to 1 if you have the `sysctl' function. */
286 #define HAVE_SYSCTL 1
287 
288 /* Define to 1 if you have the <sys/devpoll.h> header file. */
289 /* #undef HAVE_SYS_DEVPOLL_H */
290 
291 /* Define to 1 if you have the <sys/epoll.h> header file. */
292 /* #undef HAVE_SYS_EPOLL_H */
293 
294 /* Define to 1 if you have the <sys/eventfd.h> header file. */
295 /* #undef HAVE_SYS_EVENTFD_H */
296 
297 /* Define to 1 if you have the <sys/event.h> header file. */
298 #define HAVE_SYS_EVENT_H 1
299 
300 /* Define to 1 if you have the <sys/ioctl.h> header file. */
301 #define HAVE_SYS_IOCTL_H 1
302 
303 /* Define to 1 if you have the <sys/mman.h> header file. */
304 #define HAVE_SYS_MMAN_H 1
305 
306 /* Define to 1 if you have the <sys/param.h> header file. */
307 #define HAVE_SYS_PARAM_H 1
308 
309 /* Define to 1 if you have the <sys/queue.h> header file. */
310 #define HAVE_SYS_QUEUE_H 1
311 
312 /* Define to 1 if you have the <sys/resource.h> header file. */
313 #define HAVE_SYS_RESOURCE_H 1
314 
315 /* Define to 1 if you have the <sys/select.h> header file. */
316 #define HAVE_SYS_SELECT_H 1
317 
318 /* Define to 1 if you have the <sys/sendfile.h> header file. */
319 /* #undef HAVE_SYS_SENDFILE_H */
320 
321 /* Define to 1 if you have the <sys/socket.h> header file. */
322 #define HAVE_SYS_SOCKET_H 1
323 
324 /* Define to 1 if you have the <sys/stat.h> header file. */
325 #define HAVE_SYS_STAT_H 1
326 
327 /* Define to 1 if you have the <sys/sysctl.h> header file. */
328 #define HAVE_SYS_SYSCTL_H 1
329 
330 /* Define to 1 if you have the <sys/timerfd.h> header file. */
331 /* #undef HAVE_SYS_TIMERFD_H */
332 
333 /* Define to 1 if you have the <sys/time.h> header file. */
334 #define HAVE_SYS_TIME_H 1
335 
336 /* Define to 1 if you have the <sys/types.h> header file. */
337 #define HAVE_SYS_TYPES_H 1
338 
339 /* Define to 1 if you have the <sys/uio.h> header file. */
340 #define HAVE_SYS_UIO_H 1
341 
342 /* Define to 1 if you have the <sys/wait.h> header file. */
343 #define HAVE_SYS_WAIT_H 1
344 
345 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
346 #define HAVE_TAILQFOREACH 1
347 
348 /* Define if timeradd is defined in <sys/time.h> */
349 #define HAVE_TIMERADD 1
350 
351 /* Define if timerclear is defined in <sys/time.h> */
352 #define HAVE_TIMERCLEAR 1
353 
354 /* Define if timercmp is defined in <sys/time.h> */
355 #define HAVE_TIMERCMP 1
356 
357 /* Define to 1 if you have the `timerfd_create' function. */
358 /* #undef HAVE_TIMERFD_CREATE */
359 
360 /* Define if timerisset is defined in <sys/time.h> */
361 #define HAVE_TIMERISSET 1
362 
363 /* Define to 1 if the system has the type `uint16_t'. */
364 #define HAVE_UINT16_T 1
365 
366 /* Define to 1 if the system has the type `uint32_t'. */
367 #define HAVE_UINT32_T 1
368 
369 /* Define to 1 if the system has the type `uint64_t'. */
370 #define HAVE_UINT64_T 1
371 
372 /* Define to 1 if the system has the type `uint8_t'. */
373 #define HAVE_UINT8_T 1
374 
375 /* Define to 1 if the system has the type `uintptr_t'. */
376 #define HAVE_UINTPTR_T 1
377 
378 /* Define to 1 if you have the `umask' function. */
379 #define HAVE_UMASK 1
380 
381 /* Define to 1 if you have the <unistd.h> header file. */
382 #define HAVE_UNISTD_H 1
383 
384 /* Define to 1 if you have the `unsetenv' function. */
385 #define HAVE_UNSETENV 1
386 
387 /* Define to 1 if you have the `usleep' function. */
388 #define HAVE_USLEEP 1
389 
390 /* Define to 1 if you have the `vasprintf' function. */
391 #define HAVE_VASPRINTF 1
392 
393 /* Define if waitpid() supports WNOWAIT */
394 #define HAVE_WAITPID_WITH_WNOWAIT 1
395 
396 /* Define if kqueue works correctly with pipes */
397 #define HAVE_WORKING_KQUEUE 1
398 
399 /* Define to 1 if you have the <zlib.h> header file. */
400 #define HAVE_ZLIB_H 1
401 
402 /* Define to the sub-directory where libtool stores uninstalled libraries. */
403 #define LT_OBJDIR ".libs/"
404 
405 /* Numeric representation of the version */
406 #define NUMERIC_VERSION 0x02010800
407 
408 /* Name of package */
409 #define PACKAGE "libevent"
410 
411 /* Define to the address where bug reports for this package should be sent. */
412 #define PACKAGE_BUGREPORT ""
413 
414 /* Define to the full name of this package. */
415 #define PACKAGE_NAME "libevent"
416 
417 /* Define to the full name and version of this package. */
418 #define PACKAGE_STRING "libevent 2.1.8-stable"
419 
420 /* Define to the one symbol short name of this package. */
421 #define PACKAGE_TARNAME "libevent"
422 
423 /* Define to the home page for this package. */
424 #define PACKAGE_URL ""
425 
426 /* Define to the version of this package. */
427 #define PACKAGE_VERSION "2.1.8-stable"
428 
429 /* Define to necessary symbol if this constant uses a non-standard name on
430    your system. */
431 /* #undef PTHREAD_CREATE_JOINABLE */
432 
433 /* The size of `int', as computed by sizeof. */
434 #define SIZEOF_INT 4
435 
436 /* The size of `long', as computed by sizeof. */
437 #ifdef _LP64
438 #define SIZEOF_LONG 8
439 #else
440 #define SIZEOF_LONG 4
441 #endif
442 
443 /* The size of `long long', as computed by sizeof. */
444 #define SIZEOF_LONG_LONG 8
445 
446 /* The size of `off_t', as computed by sizeof. */
447 #define SIZEOF_OFF_T 8
448 
449 /* The size of `pthread_t', as computed by sizeof. */
450 #ifdef _LP64
451 #define SIZEOF_PTHREAD_T 8
452 #else
453 #define SIZEOF_PTHREAD_T 4
454 #endif
455 
456 /* The size of `short', as computed by sizeof. */
457 #define SIZEOF_SHORT 2
458 
459 /* The size of `size_t', as computed by sizeof. */
460 #ifdef _LP64
461 #define SIZEOF_SIZE_T 8
462 #else
463 #define SIZEOF_SIZE_T 4
464 #endif
465 
466 /* The size of `void *', as computed by sizeof. */
467 #ifdef _LP64
468 #define SIZEOF_VOID_P 8
469 #else
470 #define SIZEOF_VOID_P 4
471 #endif
472 
473 /* Define to 1 if you have the ANSI C header files. */
474 #define STDC_HEADERS 1
475 
476 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
477 #define TIME_WITH_SYS_TIME 1
478 
479 /* Enable extensions on AIX 3, Interix.  */
480 #ifndef _ALL_SOURCE
481 # define _ALL_SOURCE 1
482 #endif
483 /* Enable GNU extensions on systems that have them.  */
484 #ifndef _GNU_SOURCE
485 # define _GNU_SOURCE 1
486 #endif
487 /* Enable threading extensions on Solaris.  */
488 #ifndef _POSIX_PTHREAD_SEMANTICS
489 # define _POSIX_PTHREAD_SEMANTICS 1
490 #endif
491 /* Enable extensions on HP NonStop.  */
492 #ifndef _TANDEM_SOURCE
493 # define _TANDEM_SOURCE 1
494 #endif
495 /* Enable general extensions on Solaris.  */
496 #ifndef __EXTENSIONS__
497 # define __EXTENSIONS__ 1
498 #endif
499 
500 
501 /* Version number of package */
502 #define VERSION "2.1.8-stable"
503 
504 /* Enable large inode numbers on Mac OS X 10.5.  */
505 #ifndef _DARWIN_USE_64_BIT_INODE
506 # define _DARWIN_USE_64_BIT_INODE 1
507 #endif
508 
509 /* Number of bits in a file offset, on hosts where this is settable. */
510 /* #undef _FILE_OFFSET_BITS */
511 
512 /* Define for large files, on AIX-style hosts. */
513 /* #undef _LARGE_FILES */
514 
515 /* Define to 1 if on MINIX. */
516 /* #undef _MINIX */
517 
518 /* Define to 2 if the system does not provide POSIX.1 features except with
519    this defined. */
520 /* #undef _POSIX_1_SOURCE */
521 
522 /* Define to 1 if you need to in order for `stat' and other things to work. */
523 /* #undef _POSIX_SOURCE */
524 
525 /* Define to appropriate substitue if compiler doesnt have __func__ */
526 /* #undef __func__ */
527 
528 /* Define to empty if `const' does not conform to ANSI C. */
529 /* #undef const */
530 
531 /* Define to `__inline__' or `__inline' if that's what the C compiler
532    calls it, or to nothing if 'inline' is not supported under any name.  */
533 #ifndef __cplusplus
534 /* #undef inline */
535 #endif
536 
537 /* Define to `int' if <sys/types.h> does not define. */
538 /* #undef pid_t */
539 
540 /* Define to `unsigned int' if <sys/types.h> does not define. */
541 /* #undef size_t */
542 
543 /* Define to unsigned int if you dont have it */
544 /* #undef socklen_t */
545 
546 /* Define to `int' if <sys/types.h> does not define. */
547 /* #undef ssize_t */
548