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