#include <freeradius-devel/sysutmp.h>
#include <freeradius-devel/radutmp.h>
+#ifdef HAVE_PWD_H
#include <pwd.h>
+#endif
+
#include <sys/stat.h>
-#include <sys/utsname.h>
+
#include <ctype.h>
/*
*/
static char *fullname(char *username)
{
+#ifdef HAVE_PWD_Hx
struct passwd *pwd;
char *s;
if ((s = strchr(pwd->pw_gecos, ',')) != NULL) *s = 0;
return pwd->pw_gecos;
}
+#endif
+
return username;
}