diff options
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, |