From 41535eaea9e22f330f9853200140d386b44e809c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 30 Oct 2003 07:32:04 +0000 Subject: [PATCH] only use siginterrupt() if it really exists on the platform --- tests/server/sws.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/server/sws.c b/tests/server/sws.c index 8ee2e96ef..b006c2b57 100644 --- a/tests/server/sws.c +++ b/tests/server/sws.c @@ -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