From: Paul Eggert Date: Fri, 16 Nov 2012 19:02:42 +0000 (-0800) Subject: maint: port to platforms lacking SIGPIPE X-Git-Tag: v1.6~22 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=f96c3823a24841da7a574e3495363d6b516c4523;p=debian%2Fgzip maint: port to platforms lacking SIGPIPE * gzip.c (SIGPIPE): Define to 0 if not already defined. --- diff --git a/gzip.c b/gzip.c index 35b3603..d89bc24 100644 --- a/gzip.c +++ b/gzip.c @@ -121,6 +121,10 @@ static char const *const license_msg[] = { #define OFF_T_MAX (~ (off_t) 0 - OFF_T_MIN) #endif +#ifndef SIGPIPE +# define SIGPIPE 0 +#endif + /* Use SA_NOCLDSTOP as a proxy for whether the sigaction machinery is present. */ #ifndef SA_NOCLDSTOP @@ -222,7 +226,9 @@ static int handled_sig[] = #ifdef SIGHUP , SIGHUP #endif +#if SIGPIPE , SIGPIPE +#endif #ifdef SIGTERM , SIGTERM #endif