diff options
author | Futaura <oliver@futaura.co.uk> | 2022-08-07 14:42:19 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-08-10 14:14:27 +0200 |
commit | 55a138acc48c87faf1f6d5505a2ffe143a716f0e (patch) | |
tree | e3f8580f7f8458195254e4254d1941a6aaa0e5cb /lib/hostip4.c | |
parent | 34886a444f4f506edf59f9d608ed048318c97609 (diff) | |
download | curl-55a138acc48c87faf1f6d5505a2ffe143a716f0e.tar.gz |
amigaos: fix threaded resolver on AmigaOS 4.x
Replace ip4 resolution function on AmigaOS 4.x, as it requires runtime
feature detection and extra code to make it thread safe.
Closes #9265
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r-- | lib/hostip4.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c index 47da6055a..1dd54e879 100644 --- a/lib/hostip4.c +++ b/lib/hostip4.c @@ -112,7 +112,8 @@ struct Curl_addrinfo *Curl_getaddrinfo(struct Curl_easy *data, #endif /* CURLRES_SYNCH */ #endif /* CURLRES_IPV4 */ -#if defined(CURLRES_IPV4) && !defined(CURLRES_ARES) +#if defined(CURLRES_IPV4) && \ + !defined(CURLRES_ARES) && !defined(CURLRES_AMIGA) /* * Curl_ipv4_resolve_r() - ipv4 threadsafe resolver function. @@ -297,4 +298,5 @@ struct Curl_addrinfo *Curl_ipv4_resolve_r(const char *hostname, return ai; } -#endif /* defined(CURLRES_IPV4) && !defined(CURLRES_ARES) */ +#endif /* defined(CURLRES_IPV4) && !defined(CURLRES_ARES) && + !defined(CURLRES_AMIGA) */ |