Index: server/log.c =================================================================== RCS file: /home/cvs/httpd-2.0/server/log.c,v retrieving revision 1.127.2.10 diff -u -r1.127.2.10 log.c --- server/log.c 8 Mar 2004 23:12:44 -0000 1.127.2.10 +++ server/log.c 6 May 2004 10:42:58 -0000 @@ -50,6 +50,10 @@ #include "util_time.h" #include "ap_mpm.h" +#ifndef APR_LARGEFILE +#define APR_LARGEFILE 0 +#endif + typedef struct { char *t_name; int t_val; @@ -158,7 +162,7 @@ return APR_EBADPATH; } if ((rc = apr_file_open(&stderr_file, filename, - APR_APPEND | APR_READ | APR_WRITE | APR_CREATE, + APR_APPEND | APR_WRITE | APR_CREATE | APR_LARGEFILE, APR_OS_DEFAULT, p)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL, "%s: could not open error log file %s.", @@ -271,7 +275,7 @@ return DONE; } if ((rc = apr_file_open(&s->error_log, fname, - APR_APPEND | APR_READ | APR_WRITE | APR_CREATE, + APR_APPEND | APR_WRITE | APR_CREATE | APR_LARGEFILE, APR_OS_DEFAULT, p)) != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL, "%s: could not open error log file %s.", Index: modules/loggers/mod_log_config.c =================================================================== RCS file: /home/cvs/httpd-2.0/modules/loggers/mod_log_config.c,v retrieving revision 1.95.2.12 diff -u -r1.95.2.12 mod_log_config.c --- modules/loggers/mod_log_config.c 3 Mar 2004 11:07:50 -0000 1.95.2.12 +++ modules/loggers/mod_log_config.c 6 May 2004 10:42:59 -0000 @@ -170,8 +170,11 @@ module AP_MODULE_DECLARE_DATA log_config_module; +#ifndef APR_LARGEFILE +#define APR_LARGEFILE 0 +#endif -static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE); +static int xfer_flags = (APR_WRITE | APR_APPEND | APR_CREATE | APR_LARGEFILE); static apr_fileperms_t xfer_perms = APR_OS_DEFAULT; static apr_hash_t *log_hash; static apr_status_t ap_default_log_writer(request_rec *r,