From 09b80ea5d7cfca62deae660a6820a09bf38f74a0 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 19 Jun 2012 17:48:43 -0600 Subject: [PATCH] see if avoiding SIGPIPE fixes w32 target build --- debian/patches/series | 1 + debian/patches/sigpipe.diff | 14 ++++++++++++++ gzip.c | 2 ++ 3 files changed, 17 insertions(+) create mode 100644 debian/patches/sigpipe.diff diff --git a/debian/patches/series b/debian/patches/series index 4afffaf..b151332 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ rsyncable.diff gzip-man-pack.diff zdiff-man.diff rfc-urls.diff +sigpipe.diff diff --git a/debian/patches/sigpipe.diff b/debian/patches/sigpipe.diff new file mode 100644 index 0000000..ff09d86 --- /dev/null +++ b/debian/patches/sigpipe.diff @@ -0,0 +1,14 @@ +diff --git a/gzip.c b/gzip.c +index 38e1373..0d9f499 100644 +--- a/gzip.c ++++ b/gzip.c +@@ -223,7 +223,9 @@ static int handled_sig[] = + #ifdef SIGHUP + , SIGHUP + #endif ++#ifdef SIGPIPE + , SIGPIPE ++#endif + #ifdef SIGTERM + , SIGTERM + #endif diff --git a/gzip.c b/gzip.c index 38e1373..0d9f499 100644 --- a/gzip.c +++ b/gzip.c @@ -223,7 +223,9 @@ static int handled_sig[] = #ifdef SIGHUP , SIGHUP #endif +#ifdef SIGPIPE , SIGPIPE +#endif #ifdef SIGTERM , SIGTERM #endif -- 2.30.2