summaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2007-06-30 20:08:13 +0000
committerGunter Knauf <gk@gknw.de>2007-06-30 20:08:13 +0000
commitafdfa4bed24c9f937bc49807c6d547ac3a158525 (patch)
tree6ae4f7930b6bde890fd9792f68f19a914e7e14c0 /lib/hostip4.c
parent3fc6faf1ae48f15f627ccd4fae92d9c085876d42 (diff)
downloadcurl-afdfa4bed24c9f937bc49807c6d547ac3a158525.tar.gz
minor patches to enable building for NetWare CLIB.
sent by Dmitry Mityugov.
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index d092d2718..43b7c6961 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -284,7 +284,12 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
* which the gethostbyname() is the preferred() function.
*/
else {
+#if (defined(NETWARE) && !defined(__NOVELL_LIBC__))
+ NETDB_DEFINE_CONTEXT
+ h = gethostbyname((char*)hostname);
+#else
h = gethostbyname(hostname);
+#endif
if (!h)
infof(conn->data, "gethostbyname(2) failed for %s\n", hostname);
#endif /*HAVE_GETHOSTBYNAME_R */