From 494d2b064f70a21044f9d1534e4461523cca0547 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 12 Oct 2000 03:17:36 +0000 Subject: [PATCH] Get rid of some compile warnings on systems with no sendfile and/or lack of one or more rlimit controls. (Solaris 2.8 hits both of these.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86554 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http/http_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/http/http_core.c b/modules/http/http_core.c index f2ab725fcc..d71a5bc589 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -2493,7 +2493,7 @@ static const char *set_interpreter_source(cmd_parms *cmd, core_dir_config *d, #if !defined (RLIMIT_CPU) || !(defined (RLIMIT_DATA) || defined (RLIMIT_VMEM) || defined(RLIMIT_AS)) || !defined (RLIMIT_NPROC) static const char *no_set_limit(cmd_parms *cmd, core_dir_config *conf, - char *arg, char *arg2) + const char *arg, const char *arg2) { ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, cmd->server, "%s not supported on this platform", cmd->cmd->name); @@ -3420,7 +3420,9 @@ static int core_output_filter(ap_filter_t *f, ap_bucket_brigade *b) } if (fd) { apr_hdtr_t hdtr; +#if APR_HAS_SENDFILE apr_int32_t flags = 0; +#endif memset(&hdtr, '\0', sizeof(hdtr)); if (nvec) { -- 2.40.0