aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mailx/files/patch-fio.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mailx/files/patch-fio.c')
-rw-r--r--mail/mailx/files/patch-fio.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/mailx/files/patch-fio.c b/mail/mailx/files/patch-fio.c
new file mode 100644
index 000000000000..b33b93648794
--- /dev/null
+++ b/mail/mailx/files/patch-fio.c
@@ -0,0 +1,20 @@
+--- fio.c Tue Jun 4 21:05:13 2002
++++ fio.c Tue Jun 4 21:05:42 2002
+@@ -313,7 +313,7 @@
+ register char *cp, *shell;
+ int pivec[2];
+ struct stat sbuf;
+- extern union wait wait_status;
++ extern int wait_status;
+
+ /*
+ * The order of evaluation is "%" and "#" expand into constants.
+@@ -365,7 +365,7 @@
+ close(pivec[1]);
+ l = read(pivec[0], xname, BUFSIZ);
+ close(pivec[0]);
+- if (wait_child(pid) < 0 && wait_status.w_termsig != SIGPIPE) {
++ if (wait_child(pid) < 0 && WTERMSIG(wait_status) != SIGPIPE) {
+ fprintf(stderr, "\"%s\": Expansion failed.\n", name);
+ return NOSTR;
+ }