]> granicus.if.org Git - apache/commitdiff
Replace an incorrect #if by the correct corresponding #if defined(...)
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 11 Nov 2012 12:53:11 +0000 (12:53 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 11 Nov 2012 12:53:11 +0000 (12:53 +0000)
PR 54133 reported by Teodor Milkov ()

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1407965 13f79535-47bb-0310-9956-ffa450edef68

modules/generators/mod_cgi.c

index a609654524f75bdff0a34833cd8f1ce2ae2231cb..5a0cb382961eaf355a6cc455a25a46e8c7cc600a 100644 (file)
@@ -436,7 +436,7 @@ static apr_status_t run_cgi_child(apr_file_t **script_out,
         ((rc = apr_procattr_limit_set(procattr, APR_LIMIT_MEM,
                                       conf->limit_mem)) != APR_SUCCESS) ||
 #endif
-#if RLIMIT_NPROC && defined(AP_CGI_USE_RLIMIT)
+#if defined(RLIMIT_NPROC) && defined(AP_CGI_USE_RLIMIT)
         ((rc = apr_procattr_limit_set(procattr, APR_LIMIT_NPROC,
                                       conf->limit_nproc)) != APR_SUCCESS) ||
 #endif