diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-02-03 16:43:54 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-02-03 16:43:54 +0000 |
commit | 25b36fedf72139617dc172dbca887888b258698d (patch) | |
tree | a2279a6ecdbac2779e206eb5da2640bb95f95c99 /src/os/unix/ngx_linux_config.h | |
parent | a4b16df728abe1e989a8311e901ba5d9ae30328e (diff) | |
download | nginx-25b36fedf72139617dc172dbca887888b258698d.tar.gz nginx-25b36fedf72139617dc172dbca887888b258698d.zip |
nginx-0.0.2-2004-02-03-19:43:54 import
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r-- | src/os/unix/ngx_linux_config.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h index e43a6caa7..f6b84569f 100644 --- a/src/os/unix/ngx_linux_config.h +++ b/src/os/unix/ngx_linux_config.h @@ -26,13 +26,6 @@ #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> @@ -41,6 +34,14 @@ extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); #include <netdb.h> #include <dirent.h> +#include <ngx_auto_config.h> + +#if (HAVE_SENDFILE64) +#include <sys/sendfile.h> +#else +extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size); +#endif + #ifndef HAVE_SELECT |