Update and clean Tomato RAF files
[tomato.git] / release / src / router / nginx / src / os / unix / ngx_solaris_config.h
blobe664ba826c003802d59f18f37614c8ff23811c0e
2 /*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
5 */
8 #ifndef _NGX_SOLARIS_CONFIG_H_INCLUDED_
9 #define _NGX_SOLARIS_CONFIG_H_INCLUDED_
12 #ifndef _REENTRANT
13 #define _REENTRANT
14 #endif
16 #define _FILE_OFFSET_BITS 64 /* must be before <sys/types.h> */
18 #include <sys/types.h>
19 #include <sys/time.h>
20 #include <unistd.h>
21 #include <stdarg.h>
22 #include <stddef.h> /* offsetof() */
23 #include <stdio.h>
24 #include <stdlib.h>
25 #include <errno.h>
26 #include <string.h>
27 #include <signal.h>
28 #include <pwd.h>
29 #include <grp.h>
30 #include <dirent.h>
31 #include <glob.h>
32 #include <time.h>
33 #include <sys/statvfs.h> /* statvfs() */
35 #include <sys/filio.h> /* FIONBIO */
36 #include <sys/uio.h>
37 #include <sys/stat.h>
38 #include <fcntl.h>
40 #include <sys/wait.h>
41 #include <sys/mman.h>
42 #include <sys/resource.h>
43 #include <sched.h>
45 #include <sys/socket.h>
46 #include <netinet/in.h>
47 #include <netinet/tcp.h> /* TCP_NODELAY */
48 #include <arpa/inet.h>
49 #include <netdb.h>
50 #include <sys/un.h>
52 #include <sys/systeminfo.h>
53 #include <limits.h> /* IOV_MAX */
54 #include <inttypes.h>
55 #include <crypt.h>
57 #define NGX_ALIGNMENT _MAX_ALIGNMENT
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_DEVPOLL)
73 #include <sys/ioctl.h>
74 #include <sys/devpoll.h>
75 #endif
78 #if (NGX_HAVE_EVENTPORT)
79 #include <port.h>
80 #endif
83 #if (NGX_HAVE_SENDFILE)
84 #include <sys/sendfile.h>
85 #endif
88 #define NGX_LISTEN_BACKLOG 511
91 #ifndef NGX_HAVE_INHERITED_NONBLOCK
92 #define NGX_HAVE_INHERITED_NONBLOCK 1
93 #endif
96 #ifndef NGX_HAVE_SO_SNDLOWAT
97 /* setsockopt(SO_SNDLOWAT) returns ENOPROTOOPT */
98 #define NGX_HAVE_SO_SNDLOWAT 0
99 #endif
102 #define NGX_HAVE_OS_SPECIFIC_INIT 1
103 #define ngx_debug_init()
106 extern char **environ;
109 #endif /* _NGX_SOLARIS_CONFIG_H_INCLUDED_ */