event-config.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. /* 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. #ifndef _EVENT_CONFIG_H_
  7. #define _EVENT_CONFIG_H_
  8. /* Define if clock_gettime is available in libc */
  9. #define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1
  10. /* Define is no secure id variant is available */
  11. /* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */
  12. /* Define to 1 if you have the `clock_gettime' function. */
  13. #define _EVENT_HAVE_CLOCK_GETTIME 1
  14. /* Define if /dev/poll is available */
  15. /* #undef _EVENT_HAVE_DEVPOLL */
  16. /* Define to 1 if you have the <dlfcn.h> header file. */
  17. #define _EVENT_HAVE_DLFCN_H 1
  18. /* Define if your system supports the epoll system calls */
  19. /* #undef _EVENT_HAVE_EPOLL */
  20. /* Define to 1 if you have the `epoll_ctl' function. */
  21. /* #undef _EVENT_HAVE_EPOLL_CTL */
  22. /* Define if your system supports event ports */
  23. /* #undef _EVENT_HAVE_EVENT_PORTS */
  24. /* Define to 1 if you have the `fcntl' function. */
  25. #define _EVENT_HAVE_FCNTL 1
  26. /* Define to 1 if you have the <fcntl.h> header file. */
  27. #define _EVENT_HAVE_FCNTL_H 1
  28. /* Define to 1 if the system has the type `fd_mask'. */
  29. #define _EVENT_HAVE_FD_MASK 1
  30. /* Define to 1 if you have the `getaddrinfo' function. */
  31. #define _EVENT_HAVE_GETADDRINFO 1
  32. /* Define to 1 if you have the `getegid' function. */
  33. #define _EVENT_HAVE_GETEGID 1
  34. /* Define to 1 if you have the `geteuid' function. */
  35. #define _EVENT_HAVE_GETEUID 1
  36. /* Define to 1 if you have the `getnameinfo' function. */
  37. #define _EVENT_HAVE_GETNAMEINFO 1
  38. /* Define to 1 if you have the `gettimeofday' function. */
  39. #define _EVENT_HAVE_GETTIMEOFDAY 1
  40. /* Define to 1 if you have the `inet_ntop' function. */
  41. #define _EVENT_HAVE_INET_NTOP 1
  42. /* Define to 1 if you have the <inttypes.h> header file. */
  43. #define _EVENT_HAVE_INTTYPES_H 1
  44. /* Define to 1 if you have the `issetugid' function. */
  45. /* #undef _EVENT_HAVE_ISSETUGID */
  46. /* Define to 1 if you have the `kqueue' function. */
  47. /* #undef _EVENT_HAVE_KQUEUE */
  48. /* Define to 1 if you have the `nsl' library (-lnsl). */
  49. #define _EVENT_HAVE_LIBNSL 1
  50. /* Define to 1 if you have the `resolv' library (-lresolv). */
  51. #define _EVENT_HAVE_LIBRESOLV 1
  52. /* Define to 1 if you have the `rt' library (-lrt). */
  53. #define _EVENT_HAVE_LIBRT 1
  54. /* Define to 1 if you have the `socket' library (-lsocket). */
  55. /* #undef _EVENT_HAVE_LIBSOCKET */
  56. /* Define to 1 if you have the <memory.h> header file. */
  57. #define _EVENT_HAVE_MEMORY_H 1
  58. /* Define to 1 if you have the <netinet/in6.h> header file. */
  59. /* #undef _EVENT_HAVE_NETINET_IN6_H */
  60. /* Define to 1 if you have the `poll' function. */
  61. #define _EVENT_HAVE_POLL 1
  62. /* Define to 1 if you have the <poll.h> header file. */
  63. #define _EVENT_HAVE_POLL_H 1
  64. /* Define to 1 if you have the `port_create' function. */
  65. /* #undef _EVENT_HAVE_PORT_CREATE */
  66. /* Define to 1 if you have the <port.h> header file. */
  67. /* #undef _EVENT_HAVE_PORT_H */
  68. /* Define to 1 if you have the `select' function. */
  69. /* #undef _EVENT_HAVE_SELECT */
  70. /* Define if F_SETFD is defined in <fcntl.h> */
  71. #define _EVENT_HAVE_SETFD 1
  72. /* Define to 1 if you have the `sigaction' function. */
  73. /* #undef _EVENT_HAVE_SIGACTION */
  74. /* Define to 1 if you have the `signal' function. */
  75. #define _EVENT_HAVE_SIGNAL 1
  76. /* Define to 1 if you have the <signal.h> header file. */
  77. #define _EVENT_HAVE_SIGNAL_H 1
  78. /* Define to 1 if you have the <stdarg.h> header file. */
  79. #define _EVENT_HAVE_STDARG_H 1
  80. /* Define to 1 if you have the <stdint.h> header file. */
  81. #define _EVENT_HAVE_STDINT_H 1
  82. /* Define to 1 if you have the <stdlib.h> header file. */
  83. #define _EVENT_HAVE_STDLIB_H 1
  84. /* Define to 1 if you have the <strings.h> header file. */
  85. #define _EVENT_HAVE_STRINGS_H 1
  86. /* Define to 1 if you have the <string.h> header file. */
  87. #define _EVENT_HAVE_STRING_H 1
  88. /* Define to 1 if you have the `strlcpy' function. */
  89. /* #undef _EVENT_HAVE_STRLCPY */
  90. /* Define to 1 if you have the `strsep' function. */
  91. #define _EVENT_HAVE_STRSEP 1
  92. /* Define to 1 if you have the `strtok_r' function. */
  93. #define _EVENT_HAVE_STRTOK_R 1
  94. /* Define to 1 if you have the `strtoll' function. */
  95. #define _EVENT_HAVE_STRTOLL 1
  96. /* Define to 1 if the system has the type `struct in6_addr'. */
  97. #define _EVENT_HAVE_STRUCT_IN6_ADDR 1
  98. /* Define to 1 if you have the <sys/devpoll.h> header file. */
  99. /* #undef _EVENT_HAVE_SYS_DEVPOLL_H */
  100. /* Define to 1 if you have the <sys/epoll.h> header file. */
  101. /* #undef _EVENT_HAVE_SYS_EPOLL_H */
  102. /* Define to 1 if you have the <sys/event.h> header file. */
  103. /* #undef _EVENT_HAVE_SYS_EVENT_H */
  104. /* Define to 1 if you have the <sys/ioctl.h> header file. */
  105. /* #undef _EVENT_HAVE_SYS_IOCTL_H */
  106. /* Define to 1 if you have the <sys/param.h> header file. */
  107. #define _EVENT_HAVE_SYS_PARAM_H 1
  108. /* Define to 1 if you have the <sys/queue.h> header file. */
  109. #define _EVENT_HAVE_SYS_QUEUE_H 1
  110. /* Define to 1 if you have the <sys/select.h> header file. */
  111. #define _EVENT_HAVE_SYS_SELECT_H 1
  112. /* Define to 1 if you have the <sys/socket.h> header file. */
  113. #define _EVENT_HAVE_SYS_SOCKET_H 1
  114. /* Define to 1 if you have the <sys/stat.h> header file. */
  115. #define _EVENT_HAVE_SYS_STAT_H 1
  116. /* Define to 1 if you have the <sys/time.h> header file. */
  117. #define _EVENT_HAVE_SYS_TIME_H 1
  118. /* Define to 1 if you have the <sys/types.h> header file. */
  119. #define _EVENT_HAVE_SYS_TYPES_H 1
  120. /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
  121. #define _EVENT_HAVE_TAILQFOREACH 1
  122. /* Define if timeradd is defined in <sys/time.h> */
  123. /* #undef _EVENT_HAVE_TIMERADD */
  124. /* Define if timerclear is defined in <sys/time.h> */
  125. /* #undef _EVENT_HAVE_TIMERCLEAR */
  126. /* Define if timercmp is defined in <sys/time.h> */
  127. /* #undef _EVENT_HAVE_TIMERCMP */
  128. /* Define if timerisset is defined in <sys/time.h> */
  129. /* #undef _EVENT_HAVE_TIMERISSET */
  130. /* Define to 1 if the system has the type `uint16_t'. */
  131. #define _EVENT_HAVE_UINT16_T 1
  132. /* Define to 1 if the system has the type `uint32_t'. */
  133. #define _EVENT_HAVE_UINT32_T 1
  134. /* Define to 1 if the system has the type `uint64_t'. */
  135. #define _EVENT_HAVE_UINT64_T 1
  136. /* Define to 1 if the system has the type `uint8_t'. */
  137. #define _EVENT_HAVE_UINT8_T 1
  138. /* Define to 1 if you have the <unistd.h> header file. */
  139. #define _EVENT_HAVE_UNISTD_H 1
  140. /* Define to 1 if you have the `vasprintf' function. */
  141. #define _EVENT_HAVE_VASPRINTF 1
  142. /* Define if kqueue works correctly with pipes */
  143. /* #undef _EVENT_HAVE_WORKING_KQUEUE */
  144. /* Define to the sub-directory in which libtool stores uninstalled libraries.
  145. */
  146. #define _EVENT_LT_OBJDIR ".libs/"
  147. /* Numeric representation of the version */
  148. #define _EVENT_NUMERIC_VERSION 0x01040f00
  149. /* Name of package */
  150. #define _EVENT_PACKAGE "libevent_nacl"
  151. /* Define to the address where bug reports for this package should be sent. */
  152. #define _EVENT_PACKAGE_BUGREPORT ""
  153. /* Define to the full name of this package. */
  154. #define _EVENT_PACKAGE_NAME ""
  155. /* Define to the full name and version of this package. */
  156. #define _EVENT_PACKAGE_STRING ""
  157. /* Define to the one symbol short name of this package. */
  158. #define _EVENT_PACKAGE_TARNAME ""
  159. /* Define to the home page for this package. */
  160. #define _EVENT_PACKAGE_URL ""
  161. /* Define to the version of this package. */
  162. #define _EVENT_PACKAGE_VERSION ""
  163. /* The size of `int', as computed by sizeof. */
  164. #define _EVENT_SIZEOF_INT 4
  165. /* The size of `long', as computed by sizeof. */
  166. #define _EVENT_SIZEOF_LONG 8
  167. /* The size of `long long', as computed by sizeof. */
  168. #define _EVENT_SIZEOF_LONG_LONG 8
  169. /* The size of `short', as computed by sizeof. */
  170. #define _EVENT_SIZEOF_SHORT 2
  171. /* Define to 1 if you have the ANSI C header files. */
  172. #define _EVENT_STDC_HEADERS 1
  173. /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  174. #define _EVENT_TIME_WITH_SYS_TIME 1
  175. /* Version number of package */
  176. #define _EVENT_VERSION "1.4.15"
  177. /* Define to appropriate substitue if compiler doesnt have __func__ */
  178. /* #undef _EVENT___func__ */
  179. /* Define to empty if `const' does not conform to ANSI C. */
  180. /* #undef _EVENT_const */
  181. /* Define to `__inline__' or `__inline' if that's what the C compiler
  182. calls it, or to nothing if 'inline' is not supported under any name. */
  183. #ifndef _EVENT___cplusplus
  184. /* #undef _EVENT_inline */
  185. #endif
  186. /* Define to `int' if <sys/types.h> does not define. */
  187. /* #undef _EVENT_pid_t */
  188. /* Define to `unsigned int' if <sys/types.h> does not define. */
  189. /* #undef _EVENT_size_t */
  190. /* Define to unsigned int if you dont have it */
  191. /* #undef _EVENT_socklen_t */
  192. /* Work around for __native_client_nonsfi__ build. random() is not provided
  193. * by the newlib-based PNaCl toolchain, so here we declare it. Please see also
  194. * nacl_nonsfi/random.c for more details.
  195. */
  196. long int random();
  197. #endif