curl: ignore SIGPIPE - compilation fix
authorYang Tse <yangsita@gmail.com>
Wed, 9 Jan 2013 00:30:08 +0000 (01:30 +0100)
committerYang Tse <yangsita@gmail.com>
Wed, 9 Jan 2013 00:30:08 +0000 (01:30 +0100)
src/tool_main.c

index ec65176..c4121b2 100644 (file)
@@ -87,8 +87,8 @@ int main(int argc, char *argv[])
 
   main_checkfds();
 
-#ifdef HAVE_SIGNAL
-  signal(SIGPIPE, SIG_IGN);
+#ifdef SIGPIPE
+  (void)signal(SIGPIPE, SIG_IGN);
 #endif
 
   res = operate(&config, argc, argv);