From 9cf783074fd7793ebb6859e7f62b054d79074efe Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 4 Jun 2003 17:28:33 +0000 Subject: nginx-0.0.1-2003-06-04-21:28:33 import --- src/os/unix/ngx_linux_config.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/os/unix/ngx_linux_config.h') diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h index cfd941342..b90792c96 100644 --- a/src/os/unix/ngx_linux_config.h +++ b/src/os/unix/ngx_linux_config.h @@ -2,10 +2,14 @@ #define _NGX_LINUX_CONFIG_H_INCLUDED_ -#define _XOPEN_SOURCE 500 +#define _FILE_OFFSET_BITS 64 +#define _LARGEFILE_SOURCE +#define _XOPEN_SOURCE 500 /* pread, pwrite */ #include +#undef _XOPEN_SOURCE 500 + #include /* offsetof */ #include #include @@ -13,7 +17,7 @@ #include #include -#define __USE_BSD +#define __USE_BSD /* bzero */ #include #undef __USE_BSD @@ -23,14 +27,16 @@ #include #include #include +#include #include #include #include #include -typedef unsigned int u_int; -typedef unsigned char u_char; +typedef unsigned int u_int; +typedef unsigned short u_short; +typedef unsigned char u_char; #ifndef HAVE_SELECT @@ -56,4 +62,9 @@ typedef unsigned char u_char; #endif +#ifndef HAVE_FIONBIO +#define HAVE_FIONBIO 1 +#endif + + #endif /* _NGX_LINUX_CONFIG_H_INCLUDED_ */ -- cgit v1.2.3