Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 1 | #ifndef _NGX_LINUX_CONFIG_H_INCLUDED_ |
| 2 | #define _NGX_LINUX_CONFIG_H_INCLUDED_ |
| 3 | |
| 4 | |
Igor Sysoev | 9cf7830 | 2003-06-04 17:28:33 +0000 | [diff] [blame^] | 5 | #define _FILE_OFFSET_BITS 64 |
| 6 | #define _LARGEFILE_SOURCE |
Igor Sysoev | 6a1cc90 | 2003-05-22 15:23:47 +0000 | [diff] [blame] | 7 | |
| 8 | |
Igor Sysoev | 9cf7830 | 2003-06-04 17:28:33 +0000 | [diff] [blame^] | 9 | #define _XOPEN_SOURCE 500 /* pread, pwrite */ |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 10 | #include <unistd.h> |
Igor Sysoev | 9cf7830 | 2003-06-04 17:28:33 +0000 | [diff] [blame^] | 11 | #undef _XOPEN_SOURCE 500 |
| 12 | |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 13 | #include <stddef.h> /* offsetof */ |
| 14 | #include <stdlib.h> |
| 15 | #include <stdio.h> |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 16 | #include <fcntl.h> |
| 17 | #include <signal.h> |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 18 | #include <time.h> |
Igor Sysoev | 6a1cc90 | 2003-05-22 15:23:47 +0000 | [diff] [blame] | 19 | |
Igor Sysoev | 9cf7830 | 2003-06-04 17:28:33 +0000 | [diff] [blame^] | 20 | #define __USE_BSD /* bzero */ |
Igor Sysoev | 6a1cc90 | 2003-05-22 15:23:47 +0000 | [diff] [blame] | 21 | #include <string.h> |
| 22 | #undef __USE_BSD |
| 23 | |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 24 | #include <sys/types.h> |
Igor Sysoev | 6a1cc90 | 2003-05-22 15:23:47 +0000 | [diff] [blame] | 25 | #include <sys/time.h> |
| 26 | #include <sys/select.h> |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 27 | #include <sys/uio.h> |
Igor Sysoev | 6a1cc90 | 2003-05-22 15:23:47 +0000 | [diff] [blame] | 28 | #include <sys/ioctl.h> |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 29 | #include <sys/resource.h> |
Igor Sysoev | 9cf7830 | 2003-06-04 17:28:33 +0000 | [diff] [blame^] | 30 | #include <sys/sysctl.h> |
Igor Sysoev | 6a1cc90 | 2003-05-22 15:23:47 +0000 | [diff] [blame] | 31 | #include <sys/socket.h> |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 32 | #include <netinet/in.h> |
| 33 | #include <arpa/inet.h> |
Igor Sysoev | 1393325 | 2003-05-29 13:02:09 +0000 | [diff] [blame] | 34 | #include <netdb.h> |
Igor Sysoev | 6a1cc90 | 2003-05-22 15:23:47 +0000 | [diff] [blame] | 35 | |
| 36 | |
Igor Sysoev | 9cf7830 | 2003-06-04 17:28:33 +0000 | [diff] [blame^] | 37 | typedef unsigned int u_int; |
| 38 | typedef unsigned short u_short; |
| 39 | typedef unsigned char u_char; |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 40 | |
| 41 | |
| 42 | #ifndef HAVE_SELECT |
| 43 | #define HAVE_SELECT 1 |
| 44 | #endif |
| 45 | |
| 46 | |
| 47 | #ifndef HAVE_POLL |
| 48 | #define HAVE_POLL 1 |
| 49 | #endif |
| 50 | #if (HAVE_POLL) |
| 51 | #include <poll.h> |
| 52 | #endif |
| 53 | |
| 54 | |
| 55 | #if defined TCP_DEFER_ACCEPT && !defined HAVE_DEFERRED_ACCEPT |
| 56 | #define HAVE_DEFERRED_ACCEPT 1 |
| 57 | #endif |
| 58 | |
| 59 | |
| 60 | #ifndef HAVE_INHERITED_NONBLOCK |
| 61 | #define HAVE_INHERITED_NONBLOCK 1 |
| 62 | #endif |
| 63 | |
| 64 | |
Igor Sysoev | 9cf7830 | 2003-06-04 17:28:33 +0000 | [diff] [blame^] | 65 | #ifndef HAVE_FIONBIO |
| 66 | #define HAVE_FIONBIO 1 |
| 67 | #endif |
| 68 | |
| 69 | |
Igor Sysoev | fa73aac | 2003-05-21 13:28:21 +0000 | [diff] [blame] | 70 | #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */ |