diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-18 16:21:09 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-18 16:21:09 +0000 |
commit | a6c915aab98a51b69a77a23ebe1ad8eaf0fd251f (patch) | |
tree | 197a1708904aad5274994d0232b0e7edf8fdae01 /lib/hostip.h | |
parent | a8323cc3f5f3ab0621e14ebf543a870feed2280e (diff) | |
download | curl-a6c915aab98a51b69a77a23ebe1ad8eaf0fd251f.tar.gz |
fix compiler warning: external declaration in primary source file
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index d37203cc5..c6172be0f 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -26,6 +26,10 @@ #include "setup.h" #include "hash.h" +#ifdef HAVE_SETJMP_H +#include <setjmp.h> +#endif + #ifdef NETWARE #undef in_addr_t #define in_addr_t unsigned long @@ -287,7 +291,13 @@ void Curl_destroy_thread_data(struct Curl_async *async); #define CURL_INADDR_NONE INADDR_NONE #endif - - +#ifdef HAVE_SIGSETJMP +/* Forward-declaration of variable defined in hostip.c. 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. + */ +extern sigjmp_buf curl_jmpenv; +#endif #endif |