From 5518aba253096193df31b0f64e7461d1ac224dfd Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 17 Dec 2002 15:48:27 +0000 Subject: nginx-0.0.1-2002-12-17-18:48:27 import --- src/os/unix/freebsd/ngx_sendfile.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/os/unix/freebsd') 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 + +#if (HAVE_FREEBSD_SENDFILE) + #include #include #include @@ -10,12 +13,10 @@ #include /* - 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, -- cgit