From: aland Date: Sat, 14 Apr 2007 17:22:19 +0000 (+0000) Subject: Clean up header files X-Git-Tag: release_2_0_0_pre1~161 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=447370aa16eeff092868afaa8c112bd98c61044d;p=freeradius.git Clean up header files --- diff --git a/src/main/radwho.c b/src/main/radwho.c index bb1c0ae..80b352a 100644 --- a/src/main/radwho.c +++ b/src/main/radwho.c @@ -31,9 +31,12 @@ RCSID("$Id$") #include #include +#ifdef HAVE_PWD_H #include +#endif + #include -#include + #include /* @@ -175,6 +178,7 @@ static void sys_finger(const char *l) */ static char *fullname(char *username) { +#ifdef HAVE_PWD_Hx struct passwd *pwd; char *s; @@ -182,6 +186,8 @@ static char *fullname(char *username) if ((s = strchr(pwd->pw_gecos, ',')) != NULL) *s = 0; return pwd->pw_gecos; } +#endif + return username; }