aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cccp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index aec4c79..fee2bd4 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -1030,7 +1030,9 @@ main (argc, argv)
}
#endif /* RLIMIT_STACK defined */
+#ifdef SIGPIPE
signal (SIGPIPE, pipe_closed);
+#endif
p = argv[0] + strlen (argv[0]);
while (p != argv[0] && p[-1] != '/') --p;