]> granicus.if.org Git - curl/commitdiff
ifdef keep_sigact since its only used when SIGALRM is defined.
authorGunter Knauf <gk@gknw.de>
Sat, 10 Jul 2004 23:11:22 +0000 (23:11 +0000)
committerGunter Knauf <gk@gknw.de>
Sat, 10 Jul 2004 23:11:22 +0000 (23:11 +0000)
lib/url.c

index e6c7422195cae841c31c63819d9f2a7cb383d46d..467ae94be97b8e74bd28f73234158a8619d660dd 100644 (file)
--- 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 */