Mercurial > hg > nginx
comparison src/core/ngx_config.h @ 323:ba876b26b76d
nginx-0.0.3-2004-04-21-22:54:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 21 Apr 2004 18:54:33 +0000 |
parents | a0beefedaf94 |
children | 8733703a37f3 |
comparison
equal
deleted
inserted
replaced
322:ab2f8c9a2a45 | 323:ba876b26b76d |
---|---|
1 #ifndef _NGX_CONFIG_H_INCLUDED_ | 1 #ifndef _NGX_CONFIG_H_INCLUDED_ |
2 #define _NGX_CONFIG_H_INCLUDED_ | 2 #define _NGX_CONFIG_H_INCLUDED_ |
3 | 3 |
4 | 4 |
5 #if 0 | 5 #if defined __DragonFly__ && !defined __FreeBSD__ |
6 /* STUB to allocate a big ngx_connections */ | |
7 #undef FD_SETSIZE | |
8 #define FD_SETSIZE 5000 | |
9 #endif | |
10 | |
11 | |
12 #if defined __DragonFly__ && !defined(__FreeBSD__) | |
13 #define __FreeBSD__ 4 | 6 #define __FreeBSD__ 4 |
14 #define __FreeBSD_version 480101 | 7 #define __FreeBSD_version 480101 |
15 #endif | 8 #endif |
16 | 9 |
17 | 10 |
18 #if defined (__FreeBSD__) | 11 #if defined __FreeBSD__ |
19 #include <ngx_freebsd_config.h> | 12 #include <ngx_freebsd_config.h> |
20 | 13 |
21 | 14 |
22 #elif defined (__linux__) | 15 #elif defined __linux__ |
23 #include <ngx_linux_config.h> | 16 #include <ngx_linux_config.h> |
24 | 17 |
25 | 18 |
26 /* Solaris */ | 19 /* Solaris */ |
27 #elif defined (sun) && (defined (__svr4__) || defined (__SVR4)) | 20 #elif defined sun && (defined __svr4__ || defined __SVR4) |
28 #include <ngx_solaris_config.h> | 21 #include <ngx_solaris_config.h> |
29 | 22 |
30 | 23 |
31 #elif defined _WIN32 | 24 #elif defined _WIN32 |
32 | 25 |
99 /* TODO: auto_conf: ngx_inline inline __inline __inline__ */ | 92 /* TODO: auto_conf: ngx_inline inline __inline __inline__ */ |
100 #ifndef ngx_inline | 93 #ifndef ngx_inline |
101 #define ngx_inline inline | 94 #define ngx_inline inline |
102 #endif | 95 #endif |
103 | 96 |
97 #define NGX_ACCEPT_THRESHOLD 50 | |
98 | |
104 #ifndef INADDR_NONE /* Solaris */ | 99 #ifndef INADDR_NONE /* Solaris */ |
105 #define INADDR_NONE ((unsigned int) -1) | 100 #define INADDR_NONE ((unsigned int) -1) |
106 #endif | 101 #endif |
107 | 102 |
108 #ifndef INET_ADDRSTRLEN /* Win32 */ | 103 #ifndef INET_ADDRSTRLEN /* Win32 */ |