From dc1773dbd446153ec1bc9c2a71058f4d9a40f90d Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 19 Jul 2002 14:25:37 +0000 Subject: [PATCH] pw_gecos depends on HAVE_PW_GECOS --- libraries/librewrite/map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.39.5