Commit 56d98819 authored by Roy T. Fielding's avatar Roy T. Fielding
Browse files

Fix warning on Darwin 8.7.0 (OS X 10.4.7) due to the prototype for

sendfile_nonblocking being declared outside ifdefs even though the
function is defined and used only when APR_HAS_SENDFILE



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@425571 13f79535-47bb-0310-9956-ffa450edef68
parent 3865c58c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -328,10 +328,12 @@ static apr_status_t writev_nonblocking(apr_socket_t *s,
                                       apr_size_t *cumulative_bytes_written,
                                       conn_rec *c);

#if APR_HAS_SENDFILE
static apr_status_t sendfile_nonblocking(apr_socket_t *s,
                                         apr_bucket_brigade *bb,
                                         apr_size_t *cumulative_bytes_written,
                                         conn_rec *c);
#endif

#define THRESHOLD_MIN_WRITE 4096
#define THRESHOLD_MAX_BUFFER 65536