]> granicus.if.org Git - curl/commitdiff
Added SA_RESTART since (some) HPUX doesn't have that define and it doesn't
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Dec 2000 09:09:26 +0000 (09:09 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Dec 2000 09:09:26 +0000 (09:09 +0000)
need it

lib/url.c

index 006644f411ee465f77d9a0956817c1b9e904e16e..b2e47b7ed6242baec856228af12bfc1bce71c7fc 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -723,7 +723,10 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
 #ifdef HAVE_SIGACTION
   sigaction(SIGALRM, NULL, &sigact);
   sigact.sa_handler = alarmfunc;
+#ifdef SA_RESTART
+  /* HPUX doesn't have SA_RESTART but defaults to that behaviour! */
   sigact.sa_flags &= ~SA_RESTART;
+#endif
   sigaction(SIGALRM, &sigact, NULL);
 #else
   /* no sigaction(), revert to the much lamer signal() */