From: Howard Chu Date: Fri, 19 Jul 2002 14:25:37 +0000 (+0000) Subject: pw_gecos depends on HAVE_PW_GECOS X-Git-Tag: NO_SLAP_OP_BLOCKS~1358 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc1773dbd446153ec1bc9c2a71058f4d9a40f90d;p=openldap pw_gecos depends on HAVE_PW_GECOS --- diff --git a/libraries/librewrite/map.c b/libraries/librewrite/map.c index 8db54af137..5ada2c17d2 100644 --- a/libraries/librewrite/map.c +++ b/libraries/librewrite/map.c @@ -541,6 +541,7 @@ rewrite_xmap_apply( break; } +#ifdef HAVE_PW_GECOS if ( pwd->pw_gecos != NULL && pwd->pw_gecos[0] != '\0' ) { int l = strlen( pwd->pw_gecos ); @@ -555,7 +556,9 @@ rewrite_xmap_apply( break; } val->bv_len = l; - } else { + } else +#endif /* HAVE_PW_GECOS */ + { val->bv_val = strdup( key->bv_val ); val->bv_len = key->bv_len; }