From: Gisle Vanem Date: Sat, 9 Sep 2006 19:11:54 +0000 (+0000) Subject: #ifdef around alarmfunc() to supress warning. X-Git-Tag: curl-7_16_0~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb8d9b6645a38aee05b4aa459ce931e623a41b50;p=thirdparty%2Fcurl.git #ifdef around alarmfunc() to supress warning. --- diff --git a/lib/url.c b/lib/url.c index e26e475030..3f38524974 100644 --- 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)