diff options
author | Igor Sysoev <igor@sysoev.ru> | 2002-12-17 15:48:27 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2002-12-17 15:48:27 +0000 |
commit | 5518aba253096193df31b0f64e7461d1ac224dfd (patch) | |
tree | e06f1dc62410b999ab561ca07742af1fef34dc79 /src/os/unix/freebsd/ngx_sendfile.c | |
parent | 5eef618ed671c55bc1244652cb49afef224c833c (diff) | |
download | nginx-5518aba253096193df31b0f64e7461d1ac224dfd.tar.gz nginx-5518aba253096193df31b0f64e7461d1ac224dfd.zip |
nginx-0.0.1-2002-12-17-18:48:27 import
Diffstat (limited to 'src/os/unix/freebsd/ngx_sendfile.c')
-rw-r--r-- | src/os/unix/freebsd/ngx_sendfile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/os/unix/freebsd/ngx_sendfile.c b/src/os/unix/freebsd/ngx_sendfile.c index ff577db7d..dcbf68a3a 100644 --- a/src/os/unix/freebsd/ngx_sendfile.c +++ b/src/os/unix/freebsd/ngx_sendfile.c @@ -1,5 +1,8 @@ #include <ngx_config.h> + +#if (HAVE_FREEBSD_SENDFILE) + #include <ngx_core.h> #include <ngx_types.h> #include <ngx_file.h> @@ -10,12 +13,10 @@ #include <ngx_sendfile.h> /* - TODO: - FreeBSD: + CHECK: check sent if errno == EINTR then should return right sent. */ -#if (HAVE_FREEBSD_SENDFILE) int ngx_sendfile(ngx_socket_t s, ngx_iovec_t *headers, int hdr_cnt, |