diff options
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 615f36c16..4ff348436 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -70,6 +70,8 @@ #include <SystemConfiguration/SCDynamicStoreCopySpecific.h> #endif +#include "easy_lock.h" + #if defined(CURLRES_SYNCH) && \ defined(HAVE_ALARM) && \ defined(SIGALRM) && \ @@ -79,10 +81,6 @@ #define USE_ALARM_TIMEOUT #endif -#ifdef USE_ALARM_TIMEOUT -#include "easy_lock.h" -#endif - #define MAX_HOSTCACHE_LEN (255 + 7) /* max FQDN + colon + port number + zero */ #define MAX_DNS_CACHE_SIZE 29999 @@ -289,8 +287,8 @@ void Curl_hostcache_prune(struct Curl_easy *data) /* Beware this is a global and unique instance. This is used to store the return address that we can jump back to from inside a signal handler. This is not thread-safe stuff. */ -sigjmp_buf curl_jmpenv; -curl_simple_lock curl_jmpenv_lock; +static sigjmp_buf curl_jmpenv; +static curl_simple_lock curl_jmpenv_lock; #endif /* lookup address, returns entry if found and not stale */ |