aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_getnameinfo.c
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-07-03 16:00:36 +0000
committerGunter Knauf <gk@gknw.de>2007-07-03 16:00:36 +0000
commit7509ef6b4ea41680526ab71c9d71aec09209538e (patch)
tree0ad769d3c701a3fe45374f6ba89dfef7fd5bf9ac /ares/ares_getnameinfo.c
parent70f8068d4d83121c816dea4fd8d0ec4fcf0c980f (diff)
few minor changes to make ares compile for NetWare CLIB architecture.
Diffstat (limited to 'ares/ares_getnameinfo.c')
-rw-r--r--ares/ares_getnameinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares/ares_getnameinfo.c b/ares/ares_getnameinfo.c
index 8d10cfc11..2c28cebf6 100644
--- a/ares/ares_getnameinfo.c
+++ b/ares/ares_getnameinfo.c
@@ -295,8 +295,12 @@ static char *lookup_service(unsigned short port, int flags,
#endif
#else
/* Lets just hope the OS uses TLS! */
+#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
+ sep = getservbyport(port, (char*)proto);
+#else
sep = getservbyport(port, proto);
#endif
+#endif
}
if (sep && sep->s_name)
/* get service name */