aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tool_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_main.c b/src/tool_main.c
index c4121b269..cf2d862b2 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -87,7 +87,7 @@ int main(int argc, char *argv[])
main_checkfds();
-#ifdef SIGPIPE
+#if defined(HAVE_SIGNAL) && defined(SIGPIPE)
(void)signal(SIGPIPE, SIG_IGN);
#endif