]> granicus.if.org Git - apache/commitdiff
Added the #ifdef's to the prototypes to match the corresponding source code
authorBradley Nicholes <bnicholes@apache.org>
Tue, 8 Jan 2002 21:09:02 +0000 (21:09 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 8 Jan 2002 21:09:02 +0000 (21:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92774 13f79535-47bb-0310-9956-ffa450edef68

include/mpm_common.h

index 435f0a1883057fb1ed1068d722224744cc4598df..0be3508ed2c242c0917e59824faa43ffaca539a1 100644 (file)
@@ -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"