Commit 41535eae authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

only use siginterrupt() if it really exists on the platform

parent 02437b2d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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