Skip to content

Commit dec095b

Browse files
author
Martin Kraemer
committed
Fix broken compile for platforms with sendfile() -- As Graham says: Looks like this code hasn't built in the SENDFILE case for a while.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@470455 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4f2a65f commit dec095b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

modules/cache/mod_disk_cache.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,10 @@ static apr_status_t open_new_file(request_rec *r, const char *filename,
12981298
{
12991299
int flags;
13001300
apr_status_t rv;
1301+
#if APR_HAS_SENDFILE
1302+
core_dir_config *pdconf = ap_get_module_config(r->per_dir_config,
1303+
&core_module);
1304+
#endif
13011305

13021306
flags = APR_CREATE | APR_WRITE | APR_READ | APR_BINARY | APR_BUFFERED | APR_EXCL | APR_TRUNCATE;
13031307
#if APR_HAS_SENDFILE

0 commit comments

Comments
 (0)