]> granicus.if.org Git - apache/commitdiff
get http_core to compile on systems without apr_sendfile() support
authorJeff Trawick <trawick@apache.org>
Wed, 24 Jan 2001 16:10:02 +0000 (16:10 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 24 Jan 2001 16:10:02 +0000 (16:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87815 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 5863f80dd7301036572ca7c87831758f9d2152b0..4262c0e2e3396be43162bf036b8229c4a396c94f 100644 (file)
@@ -3480,16 +3480,14 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
              * return APR_ENOTIMPL seems the cleanest way to handle this 
              * case.
              */
-            if (rv == APR_ENOTIMPL) {
+            if (rv == APR_ENOTIMPL)
 #endif
+            {
                 apr_size_t unused_bytes_sent;
 
                 rv = send_the_file(c, fd, &hdtr, foffset, flen,
                                    &unused_bytes_sent);
-    
-#if APR_HAS_SENDFILE
             }
-#endif
             fd = NULL;
         }
         else {