aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-10-12 20:53:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-10-12 20:53:43 +0000
commita9f47b93641b3c59f7f8b01639540aafa7d33881 (patch)
tree2c24dad9c60eb92a0fd6bb194dcce2aa5271386e
parent7831c1ae445b9920440dd40e52e6ead31dfbe962 (diff)
another Curl_handler fix, the #ifdefs got a bit mixed up...
-rw-r--r--lib/url.c30
1 files changed, 14 insertions, 16 deletions
diff --git a/lib/url.c b/lib/url.c
index 59a2d09cd..047df97a9 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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