Update and clean Tomato RAF files
[tomato.git] / release / src / router / nginx / src / os / unix / ngx_darwin_config.h
blob149778c29ad440976c57e1f95d3f633e7d8ef1a0
2 /*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
5 */
8 #ifndef _NGX_DARWIN_CONFIG_H_INCLUDED_
9 #define _NGX_DARWIN_CONFIG_H_INCLUDED_
12 #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_0
15 #include <sys/types.h>
16 #include <sys/time.h>
17 #include <unistd.h>
18 #include <inttypes.h>
19 #include <stdarg.h>
20 #include <stddef.h> /* offsetof() */
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <errno.h>
24 #include <string.h>
25 #include <signal.h>
26 #include <pwd.h>
27 #include <grp.h>
28 #include <dirent.h>
29 #include <glob.h>
30 #include <sys/mount.h> /* statfs() */
32 #include <sys/filio.h> /* FIONBIO */
33 #include <sys/ioctl.h>
34 #include <sys/uio.h>
35 #include <sys/stat.h>
36 #include <fcntl.h>
38 #include <sys/wait.h>
39 #include <sys/mman.h>
40 #include <sys/resource.h>
41 #include <sched.h>
43 #include <sys/socket.h>
44 #include <netinet/in.h>
45 #include <netinet/tcp.h> /* TCP_NODELAY */
46 #include <arpa/inet.h>
47 #include <netdb.h>
48 #include <sys/un.h>
50 #include <sys/sysctl.h>
51 #include <xlocale.h>
54 #ifndef IOV_MAX
55 #define IOV_MAX 64
56 #endif
59 #include <ngx_auto_config.h>
62 #if (NGX_HAVE_POSIX_SEM)
63 #include <semaphore.h>
64 #endif
67 #if (NGX_HAVE_POLL)
68 #include <poll.h>
69 #endif
72 #if (NGX_HAVE_KQUEUE)
73 #include <sys/event.h>
74 #endif
77 #define NGX_LISTEN_BACKLOG -1
80 #ifndef NGX_HAVE_INHERITED_NONBLOCK
81 #define NGX_HAVE_INHERITED_NONBLOCK 1
82 #endif
85 #ifndef NGX_HAVE_CASELESS_FILESYSTEM
86 #define NGX_HAVE_CASELESS_FILESYSTEM 1
87 #endif
90 #define NGX_HAVE_OS_SPECIFIC_INIT 1
91 #define NGX_HAVE_DEBUG_MALLOC 1
94 extern char **environ;
97 #endif /* _NGX_DARWIN_CONFIG_H_INCLUDED_ */