blob: 636ee800c21aef3b716f108b1fc73f31c7c95b47 [file] [log] [blame]
James Robinsone2ac7e82014-10-15 13:21:59 -07001/* Copied from Linux version and changed the features according the PNaCl
2 * toolchain for the Non-SFI binary build, which is close to one under the
3 * linux/ directory. The built binary will be running under Linux directly,
4 * actually.
5 */
6
7#ifndef _EVENT_CONFIG_H_
8#define _EVENT_CONFIG_H_
9
10/* Define if clock_gettime is available in libc */
11#define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1
12
13/* Define is no secure id variant is available */
14/* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */
15
16/* Define to 1 if you have the `clock_gettime' function. */
17#define _EVENT_HAVE_CLOCK_GETTIME 1
18
19/* Define if /dev/poll is available */
20/* #undef _EVENT_HAVE_DEVPOLL */
21
22/* Define to 1 if you have the <dlfcn.h> header file. */
23#define _EVENT_HAVE_DLFCN_H 1
24
25/* Define if your system supports the epoll system calls */
26/* #undef _EVENT_HAVE_EPOLL */
27
28/* Define to 1 if you have the `epoll_ctl' function. */
29/* #undef _EVENT_HAVE_EPOLL_CTL */
30
31/* Define if your system supports event ports */
32/* #undef _EVENT_HAVE_EVENT_PORTS */
33
34/* Define to 1 if you have the `fcntl' function. */
35#define _EVENT_HAVE_FCNTL 1
36
37/* Define to 1 if you have the <fcntl.h> header file. */
38#define _EVENT_HAVE_FCNTL_H 1
39
40/* Define to 1 if the system has the type `fd_mask'. */
41#define _EVENT_HAVE_FD_MASK 1
42
43/* Define to 1 if you have the `getaddrinfo' function. */
44#define _EVENT_HAVE_GETADDRINFO 1
45
46/* Define to 1 if you have the `getegid' function. */
47#define _EVENT_HAVE_GETEGID 1
48
49/* Define to 1 if you have the `geteuid' function. */
50#define _EVENT_HAVE_GETEUID 1
51
52/* Define to 1 if you have the `getnameinfo' function. */
53#define _EVENT_HAVE_GETNAMEINFO 1
54
55/* Define to 1 if you have the `gettimeofday' function. */
56#define _EVENT_HAVE_GETTIMEOFDAY 1
57
58/* Define to 1 if you have the `inet_ntop' function. */
59#define _EVENT_HAVE_INET_NTOP 1
60
61/* Define to 1 if you have the <inttypes.h> header file. */
62#define _EVENT_HAVE_INTTYPES_H 1
63
64/* Define to 1 if you have the `issetugid' function. */
65/* #undef _EVENT_HAVE_ISSETUGID */
66
67/* Define to 1 if you have the `kqueue' function. */
68/* #undef _EVENT_HAVE_KQUEUE */
69
70/* Define to 1 if you have the `nsl' library (-lnsl). */
71#define _EVENT_HAVE_LIBNSL 1
72
73/* Define to 1 if you have the `resolv' library (-lresolv). */
74#define _EVENT_HAVE_LIBRESOLV 1
75
76/* Define to 1 if you have the `rt' library (-lrt). */
77#define _EVENT_HAVE_LIBRT 1
78
79/* Define to 1 if you have the `socket' library (-lsocket). */
80/* #undef _EVENT_HAVE_LIBSOCKET */
81
82/* Define to 1 if you have the <memory.h> header file. */
83#define _EVENT_HAVE_MEMORY_H 1
84
85/* Define to 1 if you have the <netinet/in6.h> header file. */
86/* #undef _EVENT_HAVE_NETINET_IN6_H */
87
88/* Define to 1 if you have the `poll' function. */
89#define _EVENT_HAVE_POLL 1
90
91/* Define to 1 if you have the <poll.h> header file. */
92#define _EVENT_HAVE_POLL_H 1
93
94/* Define to 1 if you have the `port_create' function. */
95/* #undef _EVENT_HAVE_PORT_CREATE */
96
97/* Define to 1 if you have the <port.h> header file. */
98/* #undef _EVENT_HAVE_PORT_H */
99
100/* Define to 1 if you have the `select' function. */
101/* #undef _EVENT_HAVE_SELECT */
102
103/* Define if F_SETFD is defined in <fcntl.h> */
104#define _EVENT_HAVE_SETFD 1
105
106/* Define to 1 if you have the `sigaction' function. */
107/* #undef _EVENT_HAVE_SIGACTION */
108
109/* Define to 1 if you have the `signal' function. */
110#define _EVENT_HAVE_SIGNAL 1
111
112/* Define to 1 if you have the <signal.h> header file. */
113#define _EVENT_HAVE_SIGNAL_H 1
114
115/* Define to 1 if you have the <stdarg.h> header file. */
116#define _EVENT_HAVE_STDARG_H 1
117
118/* Define to 1 if you have the <stdint.h> header file. */
119#define _EVENT_HAVE_STDINT_H 1
120
121/* Define to 1 if you have the <stdlib.h> header file. */
122#define _EVENT_HAVE_STDLIB_H 1
123
124/* Define to 1 if you have the <strings.h> header file. */
125#define _EVENT_HAVE_STRINGS_H 1
126
127/* Define to 1 if you have the <string.h> header file. */
128#define _EVENT_HAVE_STRING_H 1
129
130/* Define to 1 if you have the `strlcpy' function. */
131/* #undef _EVENT_HAVE_STRLCPY */
132
133/* Define to 1 if you have the `strsep' function. */
134#define _EVENT_HAVE_STRSEP 1
135
136/* Define to 1 if you have the `strtok_r' function. */
137#define _EVENT_HAVE_STRTOK_R 1
138
139/* Define to 1 if you have the `strtoll' function. */
140#define _EVENT_HAVE_STRTOLL 1
141
142/* Define to 1 if the system has the type `struct in6_addr'. */
143#define _EVENT_HAVE_STRUCT_IN6_ADDR 1
144
145/* Define to 1 if you have the <sys/devpoll.h> header file. */
146/* #undef _EVENT_HAVE_SYS_DEVPOLL_H */
147
148/* Define to 1 if you have the <sys/epoll.h> header file. */
149/* #undef _EVENT_HAVE_SYS_EPOLL_H */
150
151/* Define to 1 if you have the <sys/event.h> header file. */
152/* #undef _EVENT_HAVE_SYS_EVENT_H */
153
154/* Define to 1 if you have the <sys/ioctl.h> header file. */
155/* #undef _EVENT_HAVE_SYS_IOCTL_H */
156
157/* Define to 1 if you have the <sys/param.h> header file. */
158#define _EVENT_HAVE_SYS_PARAM_H 1
159
160/* Define to 1 if you have the <sys/queue.h> header file. */
161#define _EVENT_HAVE_SYS_QUEUE_H 1
162
163/* Define to 1 if you have the <sys/select.h> header file. */
164#define _EVENT_HAVE_SYS_SELECT_H 1
165
166/* Define to 1 if you have the <sys/socket.h> header file. */
167#define _EVENT_HAVE_SYS_SOCKET_H 1
168
169/* Define to 1 if you have the <sys/stat.h> header file. */
170#define _EVENT_HAVE_SYS_STAT_H 1
171
172/* Define to 1 if you have the <sys/time.h> header file. */
173#define _EVENT_HAVE_SYS_TIME_H 1
174
175/* Define to 1 if you have the <sys/types.h> header file. */
176#define _EVENT_HAVE_SYS_TYPES_H 1
177
178/* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
179#define _EVENT_HAVE_TAILQFOREACH 1
180
181/* Define if timeradd is defined in <sys/time.h> */
182/* #undef _EVENT_HAVE_TIMERADD */
183
184/* Define if timerclear is defined in <sys/time.h> */
185/* #undef _EVENT_HAVE_TIMERCLEAR */
186
187/* Define if timercmp is defined in <sys/time.h> */
188/* #undef _EVENT_HAVE_TIMERCMP */
189
190/* Define if timerisset is defined in <sys/time.h> */
191/* #undef _EVENT_HAVE_TIMERISSET */
192
193/* Define to 1 if the system has the type `uint16_t'. */
194#define _EVENT_HAVE_UINT16_T 1
195
196/* Define to 1 if the system has the type `uint32_t'. */
197#define _EVENT_HAVE_UINT32_T 1
198
199/* Define to 1 if the system has the type `uint64_t'. */
200#define _EVENT_HAVE_UINT64_T 1
201
202/* Define to 1 if the system has the type `uint8_t'. */
203#define _EVENT_HAVE_UINT8_T 1
204
205/* Define to 1 if you have the <unistd.h> header file. */
206#define _EVENT_HAVE_UNISTD_H 1
207
208/* Define to 1 if you have the `vasprintf' function. */
209#define _EVENT_HAVE_VASPRINTF 1
210
211/* Define if kqueue works correctly with pipes */
212/* #undef _EVENT_HAVE_WORKING_KQUEUE */
213
214/* Name of package */
215#define _EVENT_PACKAGE "libevent_nacl"
216
217/* Define to the address where bug reports for this package should be sent. */
218#define _EVENT_PACKAGE_BUGREPORT ""
219
220/* Define to the full name of this package. */
221#define _EVENT_PACKAGE_NAME ""
222
223/* Define to the full name and version of this package. */
224#define _EVENT_PACKAGE_STRING ""
225
226/* Define to the one symbol short name of this package. */
227#define _EVENT_PACKAGE_TARNAME ""
228
229/* Define to the version of this package. */
230#define _EVENT_PACKAGE_VERSION ""
231
232/* The size of `int', as computed by sizeof. */
233#define _EVENT_SIZEOF_INT 4
234
235/* The size of `long', as computed by sizeof. */
236#define _EVENT_SIZEOF_LONG 8
237
238/* The size of `long long', as computed by sizeof. */
239#define _EVENT_SIZEOF_LONG_LONG 8
240
241/* The size of `short', as computed by sizeof. */
242#define _EVENT_SIZEOF_SHORT 2
243
244/* Define to 1 if you have the ANSI C header files. */
245#define _EVENT_STDC_HEADERS 1
246
247/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
248#define _EVENT_TIME_WITH_SYS_TIME 1
249
250/* Version number of package */
251#define _EVENT_VERSION "1.4.13-stable"
252
253/* Define to appropriate substitue if compiler doesnt have __func__ */
254/* #undef _EVENT___func__ */
255
256/* Define to empty if `const' does not conform to ANSI C. */
257/* #undef _EVENT_const */
258
259/* Define to `__inline__' or `__inline' if that's what the C compiler
260 calls it, or to nothing if 'inline' is not supported under any name. */
261#ifndef _EVENT___cplusplus
262/* #undef _EVENT_inline */
263#endif
264
265/* Define to `int' if <sys/types.h> does not define. */
266/* #undef _EVENT_pid_t */
267
268/* Define to `unsigned int' if <sys/types.h> does not define. */
269/* #undef _EVENT_size_t */
270
271/* Define to unsigned int if you dont have it */
272/* #undef _EVENT_socklen_t */
273
274/* Work around for __native_client_nonsfi__ build. random() is not provided
275 * by the newlib-based PNaCl toolchain, so here we declare it. Please see also
276 * nacl_nonsfi/random.c for more details.
277 */
278long int random();
279
280#endif