summaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2013-01-09 01:30:08 +0100
committerYang Tse <yangsita@gmail.com>2013-01-09 01:30:08 +0100
commitdd73c924ac3bf7ab4aa32c57ec514b35c02b1460 (patch)
tree73902331324791fbf5ec2b86a42a069bb7b2e826 /src/tool_main.c
parent5a053ffe80289b8472f88d7f11f29fbc98d4d9fd (diff)
downloadcurl-dd73c924ac3bf7ab4aa32c57ec514b35c02b1460.tar.gz
curl: ignore SIGPIPE - compilation fix
Diffstat (limited to 'src/tool_main.c')
-rw-r--r--src/tool_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_main.c b/src/tool_main.c
index ec6517650..c4121b269 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -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);