aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
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 */