comparison src/core/ngx_config.h @ 29:6a0b3d6e9c13

nginx-0.0.1-2002-12-17-18:48:27 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 17 Dec 2002 15:48:27 +0000
parents a117a7fdf042
children b2e039840718
comparison
equal deleted inserted replaced
28:a117a7fdf042 29:6a0b3d6e9c13
105 105
106 #ifndef HAVE_INHERITED_NONBLOCK 106 #ifndef HAVE_INHERITED_NONBLOCK
107 #define HAVE_INHERITED_NONBLOCK 1 107 #define HAVE_INHERITED_NONBLOCK 1
108 #endif 108 #endif
109 109
110 /* FreeBSD sendfile */
110 #if __FreeBSD_version >= 300007 111 #if __FreeBSD_version >= 300007
111 112
112 #ifndef HAVE_FREEBSD_SENDFILE 113 #ifndef HAVE_FREEBSD_SENDFILE
113 #define HAVE_FREEBSD_SENDFILE 1 114 #define HAVE_FREEBSD_SENDFILE 1
114 #endif 115 #endif
115 116
116 #ifndef HAVE_FREEBSD_SENDFILE_NBYTES_BUG 117 #ifndef HAVE_FREEBSD_SENDFILE_NBYTES_BUG
117 #define HAVE_FREEBSD_SENDFILE_NBYTES_BUG 2 118 #define HAVE_FREEBSD_SENDFILE_NBYTES_BUG 2
118 #endif 119 #endif
119 120
120 #endif 121 #endif /* FreeBSD sendfile */
121 122
123 /* FreeBSD sendfile nbytes bug */
122 #if (__FreeBSD__ == 4 && __FreeBSD_version >= 460100) \ 124 #if (__FreeBSD__ == 4 && __FreeBSD_version >= 460100) \
123 || __FreeBSD_version == 460001 125 || __FreeBSD_version == 460001
124 || __FreeBSD_version >= 500029 126 || __FreeBSD_version >= 500029
125 127
126 #if (HAVE_FREEBSD_SENDFILE_NBYTES_BUG == 2) 128 #if (HAVE_FREEBSD_SENDFILE_NBYTES_BUG == 2)
127 #define HAVE_FREEBSD_SENDFILE_NBYTES_BUG 0 129 #define HAVE_FREEBSD_SENDFILE_NBYTES_BUG 0
128 #endif 130 #endif
129 131
130 #endif 132 #endif /* FreeBSD sendfile nbytes bug */
131 133
132 #if (HAVE_FREEBSD_SENDFILE) 134 #if (HAVE_FREEBSD_SENDFILE)
133 #define HAVE_SENDFILE 1 135 #define HAVE_SENDFILE 1
134 #endif 136 #endif
135 137
136 138
139 /* FreeBSD kqueue */
137 #if (__FreeBSD__ == 4 && __FreeBSD_version >= 410000) \ 140 #if (__FreeBSD__ == 4 && __FreeBSD_version >= 410000) \
138 || __FreeBSD_version >= 500011 141 || __FreeBSD_version >= 500011
139 142
140 #ifndef HAVE_KQUEUE 143 #ifndef HAVE_KQUEUE
141 #define HAVE_KQUEUE 1 144 #define HAVE_KQUEUE 1
142 #include <sys/event.h> 145 #include <sys/event.h>
143 #endif 146 #endif
144 147
145 #endif 148 #endif /* FreeBSD kqueue */
146 149
147 150
148 #endif /* __FreeBSD__ */ 151 #endif /* __FreeBSD__ */
149 152
150 153