see if avoiding SIGPIPE fixes w32 target build
authorBdale Garbee <bdale@gag.com>
Tue, 19 Jun 2012 23:48:43 +0000 (17:48 -0600)
committerBdale Garbee <bdale@gag.com>
Tue, 19 Jun 2012 23:48:43 +0000 (17:48 -0600)
debian/patches/series
debian/patches/sigpipe.diff [new file with mode: 0644]
gzip.c

index 4afffafb3af7f6e204eb46ef1a4b993c0efdf208..b151332f78823010192568084225641958177871 100644 (file)
@@ -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 (file)
index 0000000..ff09d86
--- /dev/null
@@ -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 38e1373e474edd30a0a71825b7281d8429948a9c..0d9f499de9e08b7de239cec07a59d269dd4c5579 100644 (file)
--- 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