1
0
mirror of https://frontier.innolan.net/rainlance/c-ares.git synced 2025-10-06 15:19:37 +00:00

avoid doing #if an a predef symbol that might not be defined

This commit is contained in:
Daniel Stenberg
2005-11-24 23:03:25 +00:00
parent f06e65fa65
commit fab5b5e116

View File

@ -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)