Mercurial > hg > nginx
diff src/os/unix/freebsd/ngx_sendfile.c @ 29:6a0b3d6e9c13
nginx-0.0.1-2002-12-17-18:48:27 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Dec 2002 15:48:27 +0000 |
parents | 708f8bb772ec |
children | e8cdc2989cee |
line wrap: on
line diff
--- 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,