]> granicus.if.org Git - curl/commitdiff
#ifdef around alarmfunc() to supress warning.
authorGisle Vanem <gvanem@broadpark.no>
Sat, 9 Sep 2006 19:11:54 +0000 (19:11 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sat, 9 Sep 2006 19:11:54 +0000 (19:11 +0000)
lib/url.c

index e26e47503071ae0f7e7af7aa20bbd13d137fe0ff..3f385249740c3b70d7df67317d06a52bfce805b8 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -172,6 +172,8 @@ static void conn_free(struct connectdata *conn);
 #ifdef HAVE_SIGSETJMP
 extern sigjmp_buf curl_jmpenv;
 #endif
+
+#ifdef SIGALARM
 static
 RETSIGTYPE alarmfunc(int sig)
 {
@@ -183,6 +185,7 @@ RETSIGTYPE alarmfunc(int sig)
   return;
 }
 #endif
+#endif /* SIGALRM */
 #endif /* USE_ARES */
 
 void Curl_safefree(void *ptr)