mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-22 06:43:17 -05:00
Minor fixes from jon@symas.com
This commit is contained in:
parent
245d24f776
commit
c96f8f168e
2 changed files with 5 additions and 1 deletions
|
|
@ -27,8 +27,8 @@
|
|||
#else
|
||||
# include <ac/socket.h>
|
||||
# include <ac/time.h>
|
||||
# include <net/if.h>
|
||||
# ifdef HAVE_SYS_SYSCTL_H
|
||||
# include <net/if.h>
|
||||
# include <sys/sysctl.h>
|
||||
# include <net/route.h>
|
||||
# endif
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@
|
|||
|
||||
#include <portable.h>
|
||||
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
#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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue