Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/libevent/nacl/event-config.h

Issue 646643002: Non-SFI Mode: Build libevent with PNaCl toolchain for nacl_helper_nonsfi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@newlib5
Patch Set: Rebase and fixed missing dependencies. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* event-config.h
2 * Generated by autoconf; post-processed by libevent.
3 * Do not edit this file.
4 * Do not rely on macros in this file existing in later versions.
5 */
6 #ifndef _EVENT_CONFIG_H_ 1 #ifndef _EVENT_CONFIG_H_
Junichi Uekawa 2014/10/10 02:47:52 ditto
hidehiko 2014/10/10 06:27:41 Done.
7 #define _EVENT_CONFIG_H_ 2 #define _EVENT_CONFIG_H_
8 /* config.h. Generated from config.h.in by configure. */
9 /* config.h.in. Generated from configure.in by autoheader. */
10 3
11 /* Define if clock_gettime is available in libc */ 4 /* Define if clock_gettime is available in libc */
12 #define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1 5 #define _EVENT_DNS_USE_CPU_CLOCK_FOR_ID 1
13 6
14 /* Define is no secure id variant is available */ 7 /* Define is no secure id variant is available */
15 /* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */ 8 /* #undef _EVENT_DNS_USE_GETTIMEOFDAY_FOR_ID */
16 9
17 /* Define to 1 if you have the `clock_gettime' function. */ 10 /* Define to 1 if you have the `clock_gettime' function. */
18 #define _EVENT_HAVE_CLOCK_GETTIME 1 11 #define _EVENT_HAVE_CLOCK_GETTIME 1
19 12
20 /* Define if /dev/poll is available */ 13 /* Define if /dev/poll is available */
21 /* #undef _EVENT_HAVE_DEVPOLL */ 14 /* #undef _EVENT_HAVE_DEVPOLL */
22 15
23 /* Define to 1 if you have the <dlfcn.h> header file. */ 16 /* Define to 1 if you have the <dlfcn.h> header file. */
24 #define _EVENT_HAVE_DLFCN_H 1 17 #define _EVENT_HAVE_DLFCN_H 1
25 18
26 /* Define if your system supports the epoll system calls */ 19 /* Define if your system supports the epoll system calls */
27 #define _EVENT_HAVE_EPOLL 1 20 /* #undef _EVENT_HAVE_EPOLL */
28 21
29 /* Define to 1 if you have the `epoll_ctl' function. */ 22 /* Define to 1 if you have the `epoll_ctl' function. */
30 #define _EVENT_HAVE_EPOLL_CTL 1 23 /* #undef _EVENT_HAVE_EPOLL_CTL */
31 24
32 /* Define if your system supports event ports */ 25 /* Define if your system supports event ports */
33 /* #undef _EVENT_HAVE_EVENT_PORTS */ 26 /* #undef _EVENT_HAVE_EVENT_PORTS */
34 27
35 /* Define to 1 if you have the `fcntl' function. */ 28 /* Define to 1 if you have the `fcntl' function. */
36 #define _EVENT_HAVE_FCNTL 1 29 #define _EVENT_HAVE_FCNTL 1
37 30
38 /* Define to 1 if you have the <fcntl.h> header file. */ 31 /* Define to 1 if you have the <fcntl.h> header file. */
39 #define _EVENT_HAVE_FCNTL_H 1 32 #define _EVENT_HAVE_FCNTL_H 1
40 33
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 /* Define to 1 if you have the <poll.h> header file. */ 85 /* Define to 1 if you have the <poll.h> header file. */
93 #define _EVENT_HAVE_POLL_H 1 86 #define _EVENT_HAVE_POLL_H 1
94 87
95 /* Define to 1 if you have the `port_create' function. */ 88 /* Define to 1 if you have the `port_create' function. */
96 /* #undef _EVENT_HAVE_PORT_CREATE */ 89 /* #undef _EVENT_HAVE_PORT_CREATE */
97 90
98 /* Define to 1 if you have the <port.h> header file. */ 91 /* Define to 1 if you have the <port.h> header file. */
99 /* #undef _EVENT_HAVE_PORT_H */ 92 /* #undef _EVENT_HAVE_PORT_H */
100 93
101 /* Define to 1 if you have the `select' function. */ 94 /* Define to 1 if you have the `select' function. */
102 #define _EVENT_HAVE_SELECT 1 95 /* #undef _EVENT_HAVE_SELECT */
103 96
104 /* Define if F_SETFD is defined in <fcntl.h> */ 97 /* Define if F_SETFD is defined in <fcntl.h> */
105 #define _EVENT_HAVE_SETFD 1 98 #define _EVENT_HAVE_SETFD 1
106 99
107 /* Define to 1 if you have the `sigaction' function. */ 100 /* Define to 1 if you have the `sigaction' function. */
108 #define _EVENT_HAVE_SIGACTION 1 101 /* #undef _EVENT_HAVE_SIGACTION */
109 102
110 /* Define to 1 if you have the `signal' function. */ 103 /* Define to 1 if you have the `signal' function. */
111 #define _EVENT_HAVE_SIGNAL 1 104 #define _EVENT_HAVE_SIGNAL 1
112 105
113 /* Define to 1 if you have the <signal.h> header file. */ 106 /* Define to 1 if you have the <signal.h> header file. */
114 #define _EVENT_HAVE_SIGNAL_H 1 107 #define _EVENT_HAVE_SIGNAL_H 1
115 108
116 /* Define to 1 if you have the <stdarg.h> header file. */ 109 /* Define to 1 if you have the <stdarg.h> header file. */
117 #define _EVENT_HAVE_STDARG_H 1 110 #define _EVENT_HAVE_STDARG_H 1
118 111
(...skipping 21 matching lines...) Expand all
140 /* Define to 1 if you have the `strtoll' function. */ 133 /* Define to 1 if you have the `strtoll' function. */
141 #define _EVENT_HAVE_STRTOLL 1 134 #define _EVENT_HAVE_STRTOLL 1
142 135
143 /* Define to 1 if the system has the type `struct in6_addr'. */ 136 /* Define to 1 if the system has the type `struct in6_addr'. */
144 #define _EVENT_HAVE_STRUCT_IN6_ADDR 1 137 #define _EVENT_HAVE_STRUCT_IN6_ADDR 1
145 138
146 /* Define to 1 if you have the <sys/devpoll.h> header file. */ 139 /* Define to 1 if you have the <sys/devpoll.h> header file. */
147 /* #undef _EVENT_HAVE_SYS_DEVPOLL_H */ 140 /* #undef _EVENT_HAVE_SYS_DEVPOLL_H */
148 141
149 /* Define to 1 if you have the <sys/epoll.h> header file. */ 142 /* Define to 1 if you have the <sys/epoll.h> header file. */
150 #define _EVENT_HAVE_SYS_EPOLL_H 1 143 /* #undef _EVENT_HAVE_SYS_EPOLL_H */
151 144
152 /* Define to 1 if you have the <sys/event.h> header file. */ 145 /* Define to 1 if you have the <sys/event.h> header file. */
153 /* #undef _EVENT_HAVE_SYS_EVENT_H */ 146 /* #undef _EVENT_HAVE_SYS_EVENT_H */
154 147
155 /* Define to 1 if you have the <sys/ioctl.h> header file. */ 148 /* Define to 1 if you have the <sys/ioctl.h> header file. */
156 #define _EVENT_HAVE_SYS_IOCTL_H 1 149 /* #undef _EVENT_HAVE_SYS_IOCTL_H */
157 150
158 /* Define to 1 if you have the <sys/param.h> header file. */ 151 /* Define to 1 if you have the <sys/param.h> header file. */
159 #define _EVENT_HAVE_SYS_PARAM_H 1 152 #define _EVENT_HAVE_SYS_PARAM_H 1
160 153
161 /* Define to 1 if you have the <sys/queue.h> header file. */ 154 /* Define to 1 if you have the <sys/queue.h> header file. */
162 #define _EVENT_HAVE_SYS_QUEUE_H 1 155 #define _EVENT_HAVE_SYS_QUEUE_H 1
163 156
164 /* Define to 1 if you have the <sys/select.h> header file. */ 157 /* Define to 1 if you have the <sys/select.h> header file. */
165 #define _EVENT_HAVE_SYS_SELECT_H 1 158 #define _EVENT_HAVE_SYS_SELECT_H 1
166 159
167 /* Define to 1 if you have the <sys/socket.h> header file. */ 160 /* Define to 1 if you have the <sys/socket.h> header file. */
168 #define _EVENT_HAVE_SYS_SOCKET_H 1 161 #define _EVENT_HAVE_SYS_SOCKET_H 1
169 162
170 /* Define to 1 if you have the <sys/stat.h> header file. */ 163 /* Define to 1 if you have the <sys/stat.h> header file. */
171 #define _EVENT_HAVE_SYS_STAT_H 1 164 #define _EVENT_HAVE_SYS_STAT_H 1
172 165
173 /* Define to 1 if you have the <sys/time.h> header file. */ 166 /* Define to 1 if you have the <sys/time.h> header file. */
174 #define _EVENT_HAVE_SYS_TIME_H 1 167 #define _EVENT_HAVE_SYS_TIME_H 1
175 168
176 /* Define to 1 if you have the <sys/types.h> header file. */ 169 /* Define to 1 if you have the <sys/types.h> header file. */
177 #define _EVENT_HAVE_SYS_TYPES_H 1 170 #define _EVENT_HAVE_SYS_TYPES_H 1
178 171
179 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */ 172 /* Define if TAILQ_FOREACH is defined in <sys/queue.h> */
180 #define _EVENT_HAVE_TAILQFOREACH 1 173 #define _EVENT_HAVE_TAILQFOREACH 1
181 174
182 /* Define if timeradd is defined in <sys/time.h> */ 175 /* Define if timeradd is defined in <sys/time.h> */
183 #define _EVENT_HAVE_TIMERADD 1 176 /* #undef _EVENT_HAVE_TIMERADD */
184 177
185 /* Define if timerclear is defined in <sys/time.h> */ 178 /* Define if timerclear is defined in <sys/time.h> */
186 #define _EVENT_HAVE_TIMERCLEAR 1 179 /* #undef _EVENT_HAVE_TIMERCLEAR */
187 180
188 /* Define if timercmp is defined in <sys/time.h> */ 181 /* Define if timercmp is defined in <sys/time.h> */
189 #define _EVENT_HAVE_TIMERCMP 1 182 /* #undef _EVENT_HAVE_TIMERCMP */
190 183
191 /* Define if timerisset is defined in <sys/time.h> */ 184 /* Define if timerisset is defined in <sys/time.h> */
192 #define _EVENT_HAVE_TIMERISSET 1 185 /* #undef _EVENT_HAVE_TIMERISSET */
193 186
194 /* Define to 1 if the system has the type `uint16_t'. */ 187 /* Define to 1 if the system has the type `uint16_t'. */
195 #define _EVENT_HAVE_UINT16_T 1 188 #define _EVENT_HAVE_UINT16_T 1
196 189
197 /* Define to 1 if the system has the type `uint32_t'. */ 190 /* Define to 1 if the system has the type `uint32_t'. */
198 #define _EVENT_HAVE_UINT32_T 1 191 #define _EVENT_HAVE_UINT32_T 1
199 192
200 /* Define to 1 if the system has the type `uint64_t'. */ 193 /* Define to 1 if the system has the type `uint64_t'. */
201 #define _EVENT_HAVE_UINT64_T 1 194 #define _EVENT_HAVE_UINT64_T 1
202 195
203 /* Define to 1 if the system has the type `uint8_t'. */ 196 /* Define to 1 if the system has the type `uint8_t'. */
204 #define _EVENT_HAVE_UINT8_T 1 197 #define _EVENT_HAVE_UINT8_T 1
205 198
206 /* Define to 1 if you have the <unistd.h> header file. */ 199 /* Define to 1 if you have the <unistd.h> header file. */
207 #define _EVENT_HAVE_UNISTD_H 1 200 #define _EVENT_HAVE_UNISTD_H 1
208 201
209 /* Define to 1 if you have the `vasprintf' function. */ 202 /* Define to 1 if you have the `vasprintf' function. */
210 #define _EVENT_HAVE_VASPRINTF 1 203 #define _EVENT_HAVE_VASPRINTF 1
211 204
212 /* Define if kqueue works correctly with pipes */ 205 /* Define if kqueue works correctly with pipes */
213 /* #undef _EVENT_HAVE_WORKING_KQUEUE */ 206 /* #undef _EVENT_HAVE_WORKING_KQUEUE */
214 207
215 /* Name of package */ 208 /* Name of package */
216 #define _EVENT_PACKAGE "libevent" 209 #define _EVENT_PACKAGE "libevent_nacl"
217 210
218 /* Define to the address where bug reports for this package should be sent. */ 211 /* Define to the address where bug reports for this package should be sent. */
219 #define _EVENT_PACKAGE_BUGREPORT "" 212 #define _EVENT_PACKAGE_BUGREPORT ""
220 213
221 /* Define to the full name of this package. */ 214 /* Define to the full name of this package. */
222 #define _EVENT_PACKAGE_NAME "" 215 #define _EVENT_PACKAGE_NAME ""
223 216
224 /* Define to the full name and version of this package. */ 217 /* Define to the full name and version of this package. */
225 #define _EVENT_PACKAGE_STRING "" 218 #define _EVENT_PACKAGE_STRING ""
226 219
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 #endif 257 #endif
265 258
266 /* Define to `int' if <sys/types.h> does not define. */ 259 /* Define to `int' if <sys/types.h> does not define. */
267 /* #undef _EVENT_pid_t */ 260 /* #undef _EVENT_pid_t */
268 261
269 /* Define to `unsigned int' if <sys/types.h> does not define. */ 262 /* Define to `unsigned int' if <sys/types.h> does not define. */
270 /* #undef _EVENT_size_t */ 263 /* #undef _EVENT_size_t */
271 264
272 /* Define to unsigned int if you dont have it */ 265 /* Define to unsigned int if you dont have it */
273 /* #undef _EVENT_socklen_t */ 266 /* #undef _EVENT_socklen_t */
267
268 /* Work around for __native_client_nonsfi__ build. random() is not provided
269 * by the toolchain, so here we define the static inline function, to redirect
270 * it to rand().
271 */
272 #include <stdlib.h>
273 static inline int random() { return rand(); }
Junichi Uekawa 2014/10/10 02:47:52 wow.
hidehiko 2014/10/10 06:27:40 Acknowledged.
274
274 #endif 275 #endif
OLDNEW
« third_party/libevent/nacl/config.h ('K') | « third_party/libevent/nacl/config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698