comparison src/core/ngx_config.h @ 26:53cb81681040

nginx-0.0.1-2002-12-15-09:25:09 import
author Igor Sysoev <igor@sysoev.ru>
date Sun, 15 Dec 2002 06:25:09 +0000
parents 708f8bb772ec
children a117a7fdf042
comparison
equal deleted inserted replaced
25:a8b156554dfe 26:53cb81681040
8 auto_conf 8 auto_conf
9 ngx_inline inline __inline __inline__ 9 ngx_inline inline __inline __inline__
10 */ 10 */
11 11
12 #define FD_SETSIZE 1024 12 #define FD_SETSIZE 1024
13
14
15 /* auto_conf */
16 #define NGX_ALIGN (4 - 1)
17 #define NGX_ALIGN_TYPE unsigned
18
19 #define ngx_align(p) (char *) (((NGX_ALIGN_TYPE) p + NGX_ALIGN) & ~NGX_ALIGN)
13 20
14 21
15 #ifdef _WIN32 22 #ifdef _WIN32
16 23
17 #define WIN32 1 24 #define WIN32 1
23 #include <stdarg.h> 30 #include <stdarg.h>
24 31
25 32
26 #define ngx_inline __inline 33 #define ngx_inline __inline
27 34
28 #define ngx_memzero ZeroMemory
29
30 #define ngx_close_socket closesocket
31 35
32 #ifndef HAVE_INHERITED_NONBLOCK 36 #ifndef HAVE_INHERITED_NONBLOCK
33 #define HAVE_INHERITED_NONBLOCK 1 37 #define HAVE_INHERITED_NONBLOCK 1
34 #endif 38 #endif
35 39
64 #include <netinet/in.h> 68 #include <netinet/in.h>
65 #include <arpa/inet.h> 69 #include <arpa/inet.h>
66 70
67 #define ngx_inline inline 71 #define ngx_inline inline
68 72
69 #define ngx_memzero bzero
70
71 #define ngx_close_socket close
72 73
73 #endif /* POSIX */ 74 #endif /* POSIX */
74 75
75 76
76 77