From bf809685d8095ceb83f8e2fc2bd7daa98e3b776d Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Thu, 10 Mar 2011 00:48:05 +0000 Subject: Fixed compilation when APR_HAVE_STRUCT_RLIMIT=0. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@1080074 13f79535-47bb-0310-9956-ffa450edef68 --- threadproc/unix/proc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'threadproc/unix/proc.c') diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c index 283706cfb..b5e4dd47c 100644 --- a/threadproc/unix/proc.c +++ b/threadproc/unix/proc.c @@ -667,6 +667,7 @@ APR_DECLARE(apr_status_t) apr_proc_wait(apr_proc_t *proc, return errno; } +#if APR_HAVE_STRUCT_RLIMIT APR_DECLARE(apr_status_t) apr_procattr_limit_set(apr_procattr_t *attr, apr_int32_t what, struct rlimit *limit) @@ -681,7 +682,7 @@ APR_DECLARE(apr_status_t) apr_procattr_limit_set(apr_procattr_t *attr, #endif case APR_LIMIT_MEM: -#if defined (RLIMIT_DATA) || defined (RLIMIT_VMEM) || defined(RLIMIT_AS) +#if defined(RLIMIT_DATA) || defined(RLIMIT_VMEM) || defined(RLIMIT_AS) attr->limit_mem = limit; break; #else @@ -708,3 +709,5 @@ APR_DECLARE(apr_status_t) apr_procattr_limit_set(apr_procattr_t *attr, return APR_SUCCESS; } +#endif /* APR_HAVE_STRUCT_RLIMIT */ + -- cgit v1.2.1