390
|
1
|
|
2 /*
|
|
3 * Copyright (C) Igor Sysoev
|
|
4 */
|
|
5
|
|
6
|
|
7 #ifndef _NGX_DARWIN_CONFIG_H_INCLUDED_
|
|
8 #define _NGX_DARWIN_CONFIG_H_INCLUDED_
|
|
9
|
|
10
|
638
|
11 #define MAC_OS_X_VERSION_MIN_REQUIRED MAC_OS_X_VERSION_10_0
|
|
12
|
390
|
13
|
|
14 #include <sys/types.h>
|
|
15 #include <sys/time.h>
|
|
16 #include <unistd.h>
|
|
17 #include <inttypes.h>
|
|
18 #include <stdarg.h>
|
|
19 #include <stddef.h> /* offsetof() */
|
|
20 #include <stdio.h>
|
|
21 #include <stdlib.h>
|
|
22 #include <errno.h>
|
|
23 #include <string.h>
|
|
24 #include <signal.h>
|
|
25 #include <pwd.h>
|
|
26 #include <grp.h>
|
|
27 #include <dirent.h>
|
|
28 #include <glob.h>
|
470
|
29 #include <sys/mount.h> /* statfs() */
|
390
|
30
|
|
31 #include <sys/filio.h> /* FIONBIO */
|
|
32 #include <sys/ioctl.h>
|
|
33 #include <sys/uio.h>
|
|
34 #include <sys/stat.h>
|
|
35 #include <fcntl.h>
|
|
36
|
|
37 #include <sys/wait.h>
|
|
38 #include <sys/mman.h>
|
|
39 #include <sys/resource.h>
|
|
40 #include <sched.h>
|
|
41
|
|
42 #include <sys/socket.h>
|
|
43 #include <netinet/in.h>
|
|
44 #include <netinet/tcp.h> /* TCP_NODELAY */
|
|
45 #include <arpa/inet.h>
|
|
46 #include <netdb.h>
|
|
47 #include <sys/un.h>
|
|
48
|
|
49 #include <sys/sysctl.h>
|
|
50 #include <xlocale.h>
|
|
51
|
|
52
|
|
53 #ifndef IOV_MAX
|
|
54 #define IOV_MAX 64
|
|
55 #endif
|
|
56
|
|
57
|
|
58 #include <ngx_auto_config.h>
|
|
59
|
|
60
|
624
|
61 #if (NGX_HAVE_POSIX_SEM)
|
|
62 #include <semaphore.h>
|
|
63 #endif
|
|
64
|
|
65
|
390
|
66 #if (NGX_HAVE_POLL)
|
|
67 #include <poll.h>
|
|
68 #endif
|
|
69
|
|
70
|
|
71 #if (NGX_HAVE_KQUEUE)
|
|
72 #include <sys/event.h>
|
|
73 #endif
|
|
74
|
|
75
|
|
76 #define NGX_LISTEN_BACKLOG -1
|
|
77
|
|
78
|
|
79 #ifndef NGX_HAVE_INHERITED_NONBLOCK
|
|
80 #define NGX_HAVE_INHERITED_NONBLOCK 1
|
|
81 #endif
|
|
82
|
|
83
|
|
84 #ifndef NGX_HAVE_CASELESS_FILESYSTEM
|
|
85 #define NGX_HAVE_CASELESS_FILESYSTEM 1
|
|
86 #endif
|
|
87
|
|
88
|
|
89 #define NGX_HAVE_OS_SPECIFIC_INIT 1
|
646
|
90 #define NGX_HAVE_DEBUG_MALLOC 1
|
390
|
91
|
|
92
|
|
93 extern char **environ;
|
|
94
|
|
95
|
|
96 #endif /* _NGX_DARWIN_CONFIG_H_INCLUDED_ */
|