]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Only define sendfile_nonblocking if APR_HAS_SENDFILE is true.
authorPaul Querna <pquerna@apache.org>
Sat, 3 Dec 2005 18:22:25 +0000 (18:22 +0000)
committerPaul Querna <pquerna@apache.org>
Sat, 3 Dec 2005 18:22:25 +0000 (18:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@351997 13f79535-47bb-0310-9956-ffa450edef68

server/core_filters.c

index 0c06b90c4197afc03d71b3682a894d42a489f544..5f6ff31ec48bdbfcecb83b066a8811e1d1ff82bb 100644 (file)
@@ -715,6 +715,8 @@ static apr_status_t writev_nonblocking(apr_socket_t *s,
     }
 }
 
+#if APR_HAS_SENDFILE
+
 static apr_status_t sendfile_nonblocking(apr_socket_t *s,
                                          apr_bucket_brigade *bb,
                                          apr_size_t *cumulative_bytes_written,
@@ -777,3 +779,4 @@ static apr_status_t sendfile_nonblocking(apr_socket_t *s,
     return rv;
 }
 
+#endif