aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-12-07 09:09:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-12-07 09:09:26 +0000
commit69abefc936bd00d7e991acab71f811b9750bf8ba (patch)
tree8a0d8a50b9c2ccd6f4f88d085a783a63f4794a9b
parentdad2317e6e247f29139c5000b77505dabd6149c8 (diff)
Added SA_RESTART since (some) HPUX doesn't have that define and it doesn't
need it
-rw-r--r--lib/url.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 006644f41..b2e47b7ed 100644
--- 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() */