From: Ryan Bloom Date: Mon, 22 Jan 2001 23:07:23 +0000 (+0000) Subject: We only want to define ap_send_mmap if APR_HAS_MMAP is true. Without X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31b15f05ffed86ece0be6c9fb7c3e91f4e87cddb;p=apache We only want to define ap_send_mmap if APR_HAS_MMAP is true. Without this, we don't build successfully. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87789 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/http_protocol.h b/include/http_protocol.h index 225f870c84..0d76090057 100644 --- a/include/http_protocol.h +++ b/include/http_protocol.h @@ -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