diff src/core/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 a117a7fdf042
children
line wrap: on
line diff
--- a/src/core/ngx_sendfile.c
+++ b/src/core/ngx_sendfile.c
@@ -1,5 +1,8 @@
 
 #include <ngx_config.h>
+
+#if !(HAVE_SENDFILE)
+
 #include <ngx_core.h>
 #include <ngx_log.h>
 #include <ngx_socket.h>
@@ -18,3 +21,5 @@ int ngx_sendfile(ngx_socket_t s,
 
     return NGX_ERROR;
 }
+
+#endif