aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
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? */
@@ -2126,6 +2127,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
void *keep_sigact; /* store the old handler here */
#endif
#endif
+#endif
*addr = NULL; /* nothing yet */
*async = FALSE;