From: Bradley Nicholes Date: Tue, 8 Jan 2002 21:09:02 +0000 (+0000) Subject: Added the #ifdef's to the prototypes to match the corresponding source code X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20df04951cc9509c4ded752dea5e07f981cd6158;p=apache Added the #ifdef's to the prototypes to match the corresponding source code git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92774 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/mpm_common.h b/include/mpm_common.h index 435f0a1883..0be3508ed2 100644 --- a/include/mpm_common.h +++ b/include/mpm_common.h @@ -153,6 +153,7 @@ void ap_sock_disable_nagle(apr_socket_t *s); #define ap_sock_disable_nagle(s) /* NOOP */ #endif +#ifdef HAVE_GETPWNAM /** * Convert a username to a numeric ID * @param name The name to convert @@ -160,7 +161,9 @@ void ap_sock_disable_nagle(apr_socket_t *s); * @deffunc uid_t ap_uname2id(const char *name) */ AP_DECLARE(uid_t) ap_uname2id(const char *name); +#endif +#ifdef HAVE_GETGRNAM /** * Convert a group name to a numeric ID * @param name The name to convert @@ -168,6 +171,7 @@ AP_DECLARE(uid_t) ap_uname2id(const char *name); * @deffunc gid_t ap_gname2id(const char *name) */ AP_DECLARE(gid_t) ap_gname2id(const char *name); +#endif #define AP_MPM_HARD_LIMITS_FILE APACHE_MPM_DIR "/mpm_default.h"