projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
296c4a1
)
quiet compiler
author
fcusack
<fcusack>
Mon, 10 Jun 2002 11:01:23 +0000
(11:01 +0000)
committer
fcusack
<fcusack>
Mon, 10 Jun 2002 11:01:23 +0000
(11:01 +0000)
src/lib/misc.c
patch
|
blob
|
history
diff --git
a/src/lib/misc.c
b/src/lib/misc.c
index
8d48235
..
e1c6fc0
100644
(file)
--- a/
src/lib/misc.c
+++ b/
src/lib/misc.c
@@
-37,10
+37,12
@@
char * ip_hostname(char *buf, size_t buflen, uint32_t ipaddr)
{
struct hostent *hp;
#ifdef GETHOSTBYADDRRSTYLE
+#if (GETHOSTBYADDRRSTYLE == SYSVSTYLE) || (GETHOSTBYADDRRSTYLE == GNUSTYLE)
char buffer[2048];
struct hostent result;
int error;
#endif
+#endif
/*
* No DNS: don't look up host names