diff options
author | Yang Tse <yangsita@gmail.com> | 2013-01-09 01:30:08 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-01-09 01:30:08 +0100 |
commit | dd73c924ac3bf7ab4aa32c57ec514b35c02b1460 (patch) | |
tree | 73902331324791fbf5ec2b86a42a069bb7b2e826 /src/tool_main.c | |
parent | 5a053ffe80289b8472f88d7f11f29fbc98d4d9fd (diff) | |
download | curl-dd73c924ac3bf7ab4aa32c57ec514b35c02b1460.tar.gz |
curl: ignore SIGPIPE - compilation fix
Diffstat (limited to 'src/tool_main.c')
-rw-r--r-- | src/tool_main.c | 4 |
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); |