diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-27 19:01:37 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-27 19:01:37 +0000 |
commit | 764543e73426fd00741483ff830cf09bfb73752f (patch) | |
tree | 27b8bad85c18469e593d30ee137fdb5fe1a16af4 /src/os/unix/ngx_linux_config.h | |
parent | 0e499db3ed63432cfacd08282cce1d42b568b567 (diff) | |
download | nginx-764543e73426fd00741483ff830cf09bfb73752f.tar.gz nginx-764543e73426fd00741483ff830cf09bfb73752f.zip |
nginx-0.0.1-2003-11-27-22:01:37 import
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r-- | src/os/unix/ngx_linux_config.h | 17 |
1 files changed, 6 insertions, 11 deletions
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 <unistd.h> @@ -28,7 +26,13 @@ #include <sys/sysctl.h> #include <sys/wait.h> #include <sys/socket.h> + +#if (HAVE_SENDFILE64) #include <sys/sendfile.h> +#else +extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); +#endif + #include <netinet/in.h> #include <netinet/tcp.h> /* TCP_CORK */ #include <arpa/inet.h> @@ -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 |