diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-20 16:41:50 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-20 16:41:50 +0000 |
commit | 7d844c430cf66d0ecde83a749a266e784a67db26 (patch) | |
tree | 4a281016f309e6e0c2e3919158e7e762bbb2002d /lib/setup.h | |
parent | 4f953b645967276188cb0cebdcf04d2cf08c951b (diff) |
Gisle Vanem brings name resolving timeout possibilities to windows people.
This works by magicly starting up a new thread that can be killed when the
timeout is reached. testtesttest!
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index 54915ad4e..ec69ebfdf 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -230,6 +230,10 @@ int fileno( FILE *stream); #error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild" #endif +#if defined(WIN32) && !defined(__CYGWIN32__) && !defined(USE_ARES) && !defined(ENABLE_IPV6) +#define USE_THREADING_GETHOSTBYNAME /* Cygwin uses alarm() function */ +#endif + /* * Curl_addrinfo MUST be used for name resolving information. * Information regarding a single IP witin a Curl_addrinfo MUST be stored in |