From a4af6bed5c1be3ecccfeaec3226fca3420a6c229 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Thu, 16 Jul 1998 23:29:18 +0000 Subject: [PATCH] Enable async-dns for windows in the modular netlib git-svn-id: svn://10.0.0.236/trunk@5759 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/main/mkconect.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/mozilla/network/main/mkconect.c b/mozilla/network/main/mkconect.c index ee02a0047a1..81c8e6420cb 100644 --- a/mozilla/network/main/mkconect.c +++ b/mozilla/network/main/mkconect.c @@ -32,7 +32,7 @@ #include "prefapi.h" #include "mkpadpac.h" -#if defined(XP_WIN) && !defined(MODULAR_NETLIB) +#if defined(XP_WIN) #define ASYNC_DNS #endif @@ -490,6 +490,12 @@ PRIVATE int net_bad_ports_table[] = { * it again). * * On success hostEnt is not null. */ +#if defined(XP_WIN) && defined(MODULAR_NETLIB) +extern int NET_AsyncDNSLookup(void* aContext, + const char* aHostPort, + PRHostEnt** aHoststructPtrPtr, + PRFileDesc* aSocket); +#endif PRIVATE int #ifndef ASYNC_DNS @@ -532,7 +538,11 @@ net_dns_lookup(MWContext *windowID, * if it's not done yet. * * dbbuf and hpbuf are not needed in ASYNC_DNS case. */ +#ifdef MODULAR_NETLIB + status = NET_AsyncDNSLookup(windowID, host, hostEnt, socket); +#else status = FE_AsyncDNSLookup(windowID, host, hostEnt, socket); +#endif if(status == MK_WAITING_FOR_LOOKUP) { /* Always get here after first call to FE_Async.. for a