projects
/
debian
/
gzip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f8aa3
)
maint: port to platforms lacking SIGPIPE
author
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 16 Nov 2012 19:02:42 +0000
(11:02 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Fri, 16 Nov 2012 21:45:26 +0000
(13:45 -0800)
* gzip.c (SIGPIPE): Define to 0 if not already defined.
gzip.c
patch
|
blob
|
history
diff --git
a/gzip.c
b/gzip.c
index 35b36031f4f3f9739c442578f7e308e7894eed53..d89bc24a20d9c22da587af21922d20cdc15eed72 100644
(file)
--- 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