]> granicus.if.org Git - apache/commitdiff
Fix Windows build break
authorBill Stoddard <stoddard@apache.org>
Thu, 9 Dec 1999 21:47:45 +0000 (21:47 +0000)
committerBill Stoddard <stoddard@apache.org>
Thu, 9 Dec 1999 21:47:45 +0000 (21:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84268 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 94b57ff2e27a7924ab750a852bf8d08c788eb613..4624ce3e57a88ceb1cb1cc4e41665e31e16ef851 100644 (file)
@@ -2155,6 +2155,8 @@ API_EXPORT(long) ap_send_fb_length(BUFF *fb, request_rec *r, long length)
     return total_bytes_sent;
 }
 
+#ifdef USE_MMAP_FILES
+
 /* The code writes MMAP_SEGMENT_SIZE bytes at a time.  This is due to Apache's
  * timeout model, which is a timeout per-write rather than a time for the
  * entire transaction to complete.  Essentially this should be small enough
@@ -2218,6 +2220,7 @@ API_EXPORT(size_t) ap_send_mmap(ap_mmap_t *mm, request_rec *r, size_t offset,
     SET_BYTES_SENT(r);
     return total_bytes_sent;
 }
+#endif /* USE_MMAP_FILES */
 
 API_EXPORT(int) ap_rputc(int c, request_rec *r)
 {