diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-11-24 23:03:25 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-11-24 23:03:25 +0000 |
commit | b55506a76d1941a1ff201b0d43db28dfea15da47 (patch) | |
tree | 4ce91b1e65cfed6a95f14948e97cdf7467825edc | |
parent | afc2aa2b3fa1b4a4d1c9e40d5c2406ca002a969e (diff) |
avoid doing #if an a predef symbol that might not be defined
-rw-r--r-- | ares/ares_getnameinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ares/ares_getnameinfo.c b/ares/ares_getnameinfo.c index 504409ba4..0dbed732b 100644 --- a/ares/ares_getnameinfo.c +++ b/ares/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) |