Skip to content
Snippets Groups Projects
Commit a9f47b93 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

another Curl_handler fix, the #ifdefs got a bit mixed up...

parent 7831c1ae
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,20 @@ static void flush_cookies(struct SessionHandle *data, int cleanup);
extern sigjmp_buf curl_jmpenv;
#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.
......@@ -264,22 +278,6 @@ const struct Curl_handler Curl_handler_dummy = {
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
#define verboseconnect(x) do { } while (0)
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment