From: Gunter Knauf Date: Sat, 10 Jul 2004 23:11:22 +0000 (+0000) Subject: ifdef keep_sigact since its only used when SIGALRM is defined. X-Git-Tag: curl-7_12_1~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03cb3b9db10831ff76133df15722cc9c8878ae99;p=curl ifdef keep_sigact since its only used when SIGALRM is defined. --- diff --git a/lib/url.c b/lib/url.c index e6c742219..467ae94be 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2118,6 +2118,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, int rc; bool reuse; +#ifdef SIGALRM #ifdef HAVE_SIGACTION struct sigaction keep_sigact; /* store the old struct here */ bool keep_copysig=FALSE; /* did copy it? */ @@ -2125,6 +2126,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, #ifdef HAVE_SIGNAL void *keep_sigact; /* store the old handler here */ #endif +#endif #endif *addr = NULL; /* nothing yet */