mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
another Curl_handler fix, the #ifdefs got a bit mixed up...
This commit is contained in:
parent
7831c1ae44
commit
a9f47b9364
30
lib/url.c
30
lib/url.c
@ -189,6 +189,20 @@ static void flush_cookies(struct SessionHandle *data, int cleanup);
|
|||||||
extern sigjmp_buf curl_jmpenv;
|
extern sigjmp_buf curl_jmpenv;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SIGALRM
|
||||||
|
static
|
||||||
|
RETSIGTYPE alarmfunc(int sig)
|
||||||
|
{
|
||||||
|
/* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
|
||||||
|
(void)sig;
|
||||||
|
#ifdef HAVE_SIGSETJMP
|
||||||
|
siglongjmp(curl_jmpenv, 1);
|
||||||
|
#endif
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif /* SIGALRM */
|
||||||
|
#endif /* WIN32 */
|
||||||
|
#endif /* USE_ARES */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Protocol table.
|
* Protocol table.
|
||||||
@ -264,22 +278,6 @@ const struct Curl_handler Curl_handler_dummy = {
|
|||||||
0 /* protocol */
|
0 /* protocol */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifdef SIGALRM
|
|
||||||
static
|
|
||||||
RETSIGTYPE alarmfunc(int sig)
|
|
||||||
{
|
|
||||||
/* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
|
|
||||||
(void)sig;
|
|
||||||
#ifdef HAVE_SIGSETJMP
|
|
||||||
siglongjmp(curl_jmpenv, 1);
|
|
||||||
#endif
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif /* SIGALRM */
|
|
||||||
#endif /* WIN32 */
|
|
||||||
#endif /* USE_ARES */
|
|
||||||
|
|
||||||
#ifdef CURL_DISABLE_VERBOSE_STRINGS
|
#ifdef CURL_DISABLE_VERBOSE_STRINGS
|
||||||
#define verboseconnect(x) do { } while (0)
|
#define verboseconnect(x) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user