From 764543e73426fd00741483ff830cf09bfb73752f Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 27 Nov 2003 19:01:37 +0000 Subject: nginx-0.0.1-2003-11-27-22:01:37 import --- src/os/unix/ngx_linux_config.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 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 59e1b0976..0ec0532f3 100644 --- a/src/os/unix/ngx_linux_config.h +++ b/src/os/unix/ngx_linux_config.h @@ -4,10 +4,8 @@ #define _GNU_SOURCE /* pread(), pwrite(), gethostname() */ -#if 0 #define _FILE_OFFSET_BITS 64 #define _LARGEFILE_SOURCE -#endif #include @@ -28,7 +26,13 @@ #include #include #include + +#if (HAVE_SENDFILE64) #include +#else +extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); +#endif + #include #include /* TCP_CORK */ #include @@ -37,15 +41,6 @@ -#if 0 -#define SIZE_FMT "%d" -#define SIZEX_FMT "%x" -#define PID_FMT "%d" -#define RLIM_FMT "%lu" -#endif - - - #ifndef HAVE_SELECT #define HAVE_SELECT 1 #endif -- cgit v1.2.3