only use siginterrupt() if it really exists on the platform
authorDaniel Stenberg <daniel@haxx.se>
Thu, 30 Oct 2003 07:32:04 +0000 (07:32 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 30 Oct 2003 07:32:04 +0000 (07:32 +0000)
tests/server/sws.c

index 8ee2e96..b006c2b 100644 (file)
@@ -537,6 +537,8 @@ int main(int argc, char *argv[])
 
 #ifdef HAVE_SIGNAL
   signal(SIGPIPE, sigpipe_handler);
+#endif
+#ifdef HAVE_SIGINTERRUPT
   siginterrupt(SIGPIPE, 1);
 #endif