comparison src/os/unix/ngx_linux_config.h @ 101:2e069b6e6920

nginx-0.0.1-2003-06-04-21:28:33 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 04 Jun 2003 17:28:33 +0000
parents 70d2345a903f
children 7e86d028d8f0
comparison
equal deleted inserted replaced
100:7ebc8b7fb816 101:2e069b6e6920
1 #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_ 1 #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_
2 #define _NGX_LINUX_CONFIG_H_INCLUDED_ 2 #define _NGX_LINUX_CONFIG_H_INCLUDED_
3 3
4 4
5 #define _XOPEN_SOURCE 500 5 #define _FILE_OFFSET_BITS 64
6 #define _LARGEFILE_SOURCE
6 7
7 8
9 #define _XOPEN_SOURCE 500 /* pread, pwrite */
8 #include <unistd.h> 10 #include <unistd.h>
11 #undef _XOPEN_SOURCE 500
12
9 #include <stddef.h> /* offsetof */ 13 #include <stddef.h> /* offsetof */
10 #include <stdlib.h> 14 #include <stdlib.h>
11 #include <stdio.h> 15 #include <stdio.h>
12 #include <fcntl.h> 16 #include <fcntl.h>
13 #include <signal.h> 17 #include <signal.h>
14 #include <time.h> 18 #include <time.h>
15 19
16 #define __USE_BSD 20 #define __USE_BSD /* bzero */
17 #include <string.h> 21 #include <string.h>
18 #undef __USE_BSD 22 #undef __USE_BSD
19 23
20 #include <sys/types.h> 24 #include <sys/types.h>
21 #include <sys/time.h> 25 #include <sys/time.h>
22 #include <sys/select.h> 26 #include <sys/select.h>
23 #include <sys/uio.h> 27 #include <sys/uio.h>
24 #include <sys/ioctl.h> 28 #include <sys/ioctl.h>
25 #include <sys/resource.h> 29 #include <sys/resource.h>
30 #include <sys/sysctl.h>
26 #include <sys/socket.h> 31 #include <sys/socket.h>
27 #include <netinet/in.h> 32 #include <netinet/in.h>
28 #include <arpa/inet.h> 33 #include <arpa/inet.h>
29 #include <netdb.h> 34 #include <netdb.h>
30 35
31 36
32 typedef unsigned int u_int; 37 typedef unsigned int u_int;
33 typedef unsigned char u_char; 38 typedef unsigned short u_short;
39 typedef unsigned char u_char;
34 40
35 41
36 #ifndef HAVE_SELECT 42 #ifndef HAVE_SELECT
37 #define HAVE_SELECT 1 43 #define HAVE_SELECT 1
38 #endif 44 #endif
54 #ifndef HAVE_INHERITED_NONBLOCK 60 #ifndef HAVE_INHERITED_NONBLOCK
55 #define HAVE_INHERITED_NONBLOCK 1 61 #define HAVE_INHERITED_NONBLOCK 1
56 #endif 62 #endif
57 63
58 64
65 #ifndef HAVE_FIONBIO
66 #define HAVE_FIONBIO 1
67 #endif
68
69
59 #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */ 70 #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */