comparison src/os/unix/ngx_freebsd_config.h @ 93:738fe44c70d5

nginx-0.0.1-2003-05-21-17:28:21 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 21 May 2003 13:28:21 +0000
parents
children 8220378432a8
comparison
equal deleted inserted replaced
92:19cc647ecd91 93:738fe44c70d5
1 #ifndef _NGX_FREEBSD_CONFIG_H_INCLUDED_
2 #define _NGX_FREEBSD_CONFIG_H_INCLUDED_
3
4
5 #include <unistd.h>
6 #include <stddef.h> /* offsetof */
7 #include <stdlib.h>
8 #include <stdio.h>
9 #include <stdarg.h>
10 #include <fcntl.h>
11 #include <signal.h>
12 #include <string.h>
13 #include <time.h>
14 #include <sys/types.h>
15 #include <sys/mman.h>
16 #include <sys/wait.h>
17 #include <sys/socket.h>
18 #include <sys/uio.h>
19 #include <sys/ioctl.h>
20 #include <sys/resource.h>
21 #include <netinet/in.h>
22 #include <arpa/inet.h>
23 #include <netdb.h>
24
25 #include <osreldate.h>
26
27
28 #ifndef HAVE_SELECT
29 #define HAVE_SELECT 1
30 #endif
31
32
33 #ifndef HAVE_POLL
34 #define HAVE_POLL 1
35 #endif
36 #if (HAVE_POLL)
37 #include <poll.h>
38 #endif
39
40 /* FreeBSD aio supported via kqueue */
41
42 #if (__FreeBSD__ == 4 && __FreeBSD_version >= 430000) \
43 || __FreeBSD_version >= 500014
44
45 #ifndef HAVE_AIO
46 #define HAVE_AIO 1
47 #endif
48
49 #endif
50
51 #if (HAVE_AIO)
52 #include <aio.h>
53 #endif
54
55
56 #if defined SO_ACCEPTFILTER && !defined HAVE_DEFERRED_ACCEPT
57 #define HAVE_DEFERRED_ACCEPT 1
58 #endif
59
60
61 /* FreeBSD sendfile */
62
63 #if __FreeBSD_version >= 300007
64
65 #ifndef HAVE_FREEBSD_SENDFILE
66 #define HAVE_FREEBSD_SENDFILE 1
67 #endif
68
69 #endif
70
71
72 #if (HAVE_FREEBSD_SENDFILE)
73 #define HAVE_SENDFILE 1
74 #endif
75
76
77 /* FreeBSD kqueue */
78
79 #if (__FreeBSD__ == 4 && __FreeBSD_version >= 410000) \
80 || __FreeBSD_version >= 500011
81
82 #ifndef HAVE_KQUEUE
83 #define HAVE_KQUEUE 1
84 #endif
85
86 #endif
87
88 #if (HAVE_KQUEUE)
89 #include <sys/event.h>
90 #endif
91
92
93 /* kqueue's NOTE_LOWAT */
94
95 #if (__FreeBSD__ == 4 && __FreeBSD_version >= 430000) \
96 || __FreeBSD_version >= 500018
97
98 #ifndef HAVE_LOWAT_EVENT
99 #define HAVE_LOWAT_EVENT 1
100 #endif
101
102 #endif
103
104
105
106
107 #ifndef HAVE_INHERITED_NONBLOCK
108 #define HAVE_INHERITED_NONBLOCK 1
109 #endif
110
111
112 #endif /* _NGX_FREEBSD_CONFIG_H_INCLUDED_ */