]> granicus.if.org Git - apache/commitdiff
We only want to define ap_send_mmap if APR_HAS_MMAP is true. Without
authorRyan Bloom <rbb@apache.org>
Mon, 22 Jan 2001 23:07:23 +0000 (23:07 +0000)
committerRyan Bloom <rbb@apache.org>
Mon, 22 Jan 2001 23:07:23 +0000 (23:07 +0000)
this, we don't build successfully.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87789 13f79535-47bb-0310-9956-ffa450edef68

include/http_protocol.h

index 225f870c84bffffc91ef90b289af40599dda7d42..0d76090057ad2ca49771ec789d5187bfaf10fd04 100644 (file)
@@ -227,6 +227,7 @@ AP_DECLARE(int) ap_meets_conditions(request_rec *r);
 AP_DECLARE(apr_status_t) ap_send_fd(apr_file_t *fd, request_rec *r, apr_off_t offset, 
                                    apr_size_t length, apr_size_t *nbytes);
 
+#if APR_HAS_MMAP
 /**
  * Send an MMAP'ed file to the client
  * @param mm The MMAP'ed file to send
@@ -238,6 +239,7 @@ AP_DECLARE(apr_status_t) ap_send_fd(apr_file_t *fd, request_rec *r, apr_off_t of
  */
 AP_DECLARE(size_t) ap_send_mmap(apr_mmap_t *mm, request_rec *r, size_t offset,
                              size_t length);
+#endif
 
 /**
  * Create a new method list with the specified number of preallocated