projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f06e65f
)
avoid doing #if an a predef symbol that might not be defined
author
Daniel Stenberg
<daniel@haxx.se>
Thu, 24 Nov 2005 23:03:25 +0000
(23:03 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Thu, 24 Nov 2005 23:03:25 +0000
(23:03 +0000)
ares_getnameinfo.c
patch
|
blob
|
history
diff --git
a/ares_getnameinfo.c
b/ares_getnameinfo.c
index
504409b
..
0dbed73
100644
(file)
--- a/
ares_getnameinfo.c
+++ b/
ares_getnameinfo.c
@@
-263,6
+263,7
@@
static char *lookup_service(unsigned short port, int flags,
{
struct servent *se;
const char *proto;
+#ifdef HAVE_GETSERVBYPORT_R
#if GETSERVBYPORT_R_ARGS == 6
struct servent ret;
char buf[4096];
@@
-274,6
+275,7
@@
static char *lookup_service(unsigned short port, int flags,
struct servent ret;
struct servent_data sed;
#endif
+#endif /* HAVE_GETSERVBYPORT_R */
if (flags & ARES_NI_UDP)
proto = "udp";
else if (flags & ARES_NI_SCTP)