projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e7b548b
)
Clean up header files
author
aland
<aland>
Sat, 14 Apr 2007 17:22:19 +0000
(17:22 +0000)
committer
aland
<aland>
Sat, 14 Apr 2007 17:22:19 +0000
(17:22 +0000)
src/main/radwho.c
patch
|
blob
|
history
diff --git
a/src/main/radwho.c
b/src/main/radwho.c
index
bb1c0ae
..
80b352a
100644
(file)
--- a/
src/main/radwho.c
+++ b/
src/main/radwho.c
@@
-31,9
+31,12
@@
RCSID("$Id$")
#include <freeradius-devel/sysutmp.h>
#include <freeradius-devel/radutmp.h>
#include <freeradius-devel/sysutmp.h>
#include <freeradius-devel/radutmp.h>
+#ifdef HAVE_PWD_H
#include <pwd.h>
#include <pwd.h>
+#endif
+
#include <sys/stat.h>
#include <sys/stat.h>
-#include <sys/utsname.h>
+
#include <ctype.h>
/*
#include <ctype.h>
/*
@@
-175,6
+178,7
@@
static void sys_finger(const char *l)
*/
static char *fullname(char *username)
{
*/
static char *fullname(char *username)
{
+#ifdef HAVE_PWD_Hx
struct passwd *pwd;
char *s;
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;
}
if ((s = strchr(pwd->pw_gecos, ',')) != NULL) *s = 0;
return pwd->pw_gecos;
}
+#endif
+
return username;
}
return username;
}