xref: /freebsd/contrib/libevent/evconfig-private.h.in (revision b50261e21f39a6c7249a49e7b60aa878c98512a8)
1c43e99fdSEd Maste/* evconfig-private.h template - see "Configuration Header Templates" */
2c43e99fdSEd Maste/* in AC manual.  Kevin Bowling <kevin.bowling@kev009.com */
3c43e99fdSEd Maste#ifndef EVCONFIG_PRIVATE_H_INCLUDED_
4c43e99fdSEd Maste#define EVCONFIG_PRIVATE_H_INCLUDED_
5c43e99fdSEd Maste
6c43e99fdSEd Maste/* Enable extensions on AIX 3, Interix.  */
7c43e99fdSEd Maste#ifndef _ALL_SOURCE
8c43e99fdSEd Maste# undef _ALL_SOURCE
9c43e99fdSEd Maste#endif
10c43e99fdSEd Maste/* Enable GNU extensions on systems that have them.  */
11c43e99fdSEd Maste#ifndef _GNU_SOURCE
12c43e99fdSEd Maste# undef _GNU_SOURCE
13c43e99fdSEd Maste#endif
14c43e99fdSEd Maste/* Enable threading extensions on Solaris.  */
15c43e99fdSEd Maste#ifndef _POSIX_PTHREAD_SEMANTICS
16c43e99fdSEd Maste# undef _POSIX_PTHREAD_SEMANTICS
17c43e99fdSEd Maste#endif
18c43e99fdSEd Maste/* Enable extensions on HP NonStop.  */
19c43e99fdSEd Maste#ifndef _TANDEM_SOURCE
20c43e99fdSEd Maste# undef _TANDEM_SOURCE
21c43e99fdSEd Maste#endif
22c43e99fdSEd Maste/* Enable general extensions on Solaris.  */
23c43e99fdSEd Maste#ifndef __EXTENSIONS__
24c43e99fdSEd Maste# undef __EXTENSIONS__
25c43e99fdSEd Maste#endif
26c43e99fdSEd Maste
27c43e99fdSEd Maste/* Number of bits in a file offset, on hosts where this is settable. */
28c43e99fdSEd Maste#undef _FILE_OFFSET_BITS
29c43e99fdSEd Maste/* Define for large files, on AIX-style hosts. */
30c43e99fdSEd Maste#undef _LARGE_FILES
31c43e99fdSEd Maste
32c43e99fdSEd Maste/* Define to 1 if on MINIX. */
33c43e99fdSEd Maste#ifndef _MINIX
34c43e99fdSEd Maste#undef _MINIX
35c43e99fdSEd Maste#endif
36c43e99fdSEd Maste
37c43e99fdSEd Maste/* Define to 2 if the system does not provide POSIX.1 features except with
38c43e99fdSEd Maste   this defined. */
39c43e99fdSEd Maste#ifndef _POSIX_1_SOURCE
40c43e99fdSEd Maste#undef _POSIX_1_SOURCE
41c43e99fdSEd Maste#endif
42c43e99fdSEd Maste
43c43e99fdSEd Maste/* Define to 1 if you need to in order for `stat' and other things to work. */
44c43e99fdSEd Maste#ifndef _POSIX_SOURCE
45c43e99fdSEd Maste#undef _POSIX_SOURCE
46c43e99fdSEd Maste#endif
47c43e99fdSEd Maste
48*b50261e2SCy Schubert/* Enable POSIX.2 extensions on QNX for getopt */
49*b50261e2SCy Schubert#ifdef __QNX__
50*b50261e2SCy Schubert# ifndef __EXT_POSIX2
51*b50261e2SCy Schubert#  define __EXT_POSIX2
52*b50261e2SCy Schubert# endif
53*b50261e2SCy Schubert#endif
54*b50261e2SCy Schubert
55c43e99fdSEd Maste#endif
56