]> granicus.if.org Git - curl/commitdiff
corrected the signal handler
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Jun 2002 15:44:27 +0000 (15:44 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Jun 2002 15:44:27 +0000 (15:44 +0000)
lib/url.c

index 44c13ccb19991dbe87f1db7a7e4f8a672bf447a2..0c47b2e0ff3c62e7f895fb4eb95d184c4f0c45fb 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -143,13 +143,13 @@ static unsigned int ConnectionStore(struct SessionHandle *data,
 #ifndef RETSIGTYPE
 #define RETSIGTYPE void
 #endif
+extern sigjmp_buf curl_jmpenv;
 static
 RETSIGTYPE alarmfunc(int signal)
 {
   /* this is for "-ansi -Wall -pedantic" to stop complaining!   (rabe) */
   (void)signal;
 #ifdef HAVE_SIGSETJMP
-  extern sigjmp_buf curl_jmpenv;
   siglongjmp(curl_jmpenv, 1);
 #endif
   return;