From: Howard Chu Date: Fri, 7 Dec 2001 03:19:29 +0000 (+0000) Subject: Minor fixes from jon@symas.com X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~730 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c96f8f168e7949038b628d23937739bad6f69549;p=openldap Minor fixes from jon@symas.com --- diff --git a/libraries/liblutil/uuid.c b/libraries/liblutil/uuid.c index 0775edf00a..7497c96888 100644 --- a/libraries/liblutil/uuid.c +++ b/libraries/liblutil/uuid.c @@ -27,8 +27,8 @@ #else # include # include -# include # ifdef HAVE_SYS_SYSCTL_H +# include # include # include # endif diff --git a/libraries/librewrite/map.c b/libraries/librewrite/map.c index c1fc47d3a8..9fbf330c3c 100644 --- a/libraries/librewrite/map.c +++ b/libraries/librewrite/map.c @@ -24,7 +24,9 @@ #include +#ifdef HAVE_PWD_H #include +#endif #include "rewrite-int.h" #include "rewrite-map.h" @@ -519,6 +521,7 @@ rewrite_xmap_apply( val->bv_len = 0; switch ( map->lm_type ) { +#ifdef HAVE_GETPWNAM case REWRITE_MAP_XPWDMAP: { struct passwd *pwd; @@ -562,6 +565,7 @@ rewrite_xmap_apply( break; } +#endif /* HAVE_GETPWNAM*/ case REWRITE_MAP_XFILEMAP: { char buf[1024];