aboutsummaryrefslogtreecommitdiff
path: root/mail/mailx/files/patch-popen.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mailx/files/patch-popen.c')
-rw-r--r--mail/mailx/files/patch-popen.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/mail/mailx/files/patch-popen.c b/mail/mailx/files/patch-popen.c
new file mode 100644
index 000000000000..ec49cf92886e
--- /dev/null
+++ b/mail/mailx/files/patch-popen.c
@@ -0,0 +1,43 @@
+--- popen.c Fri May 27 08:32:06 1994
++++ popen.c Tue Jun 4 21:07:45 2002
+@@ -55,7 +55,7 @@
+ int pid;
+ char done;
+ char free;
+- union wait status;
++ int status;
+ struct child *link;
+ };
+ static struct child *child;
+@@ -320,11 +320,11 @@
+ int signo;
+ {
+ int pid;
+- union wait status;
++ int status;
+ register struct child *cp;
+
+ while ((pid =
+- wait3((int *)&status, WNOHANG, (struct rusage *)0)) > 0) {
++ wait3(&status, WNOHANG, (struct rusage *)0)) > 0) {
+ cp = findchild(pid);
+ if (cp->free)
+ delchild(cp);
+@@ -335,7 +335,7 @@
+ }
+ }
+
+-union wait wait_status;
++int wait_status;
+
+ /*
+ * Wait for a specific child to die.
+@@ -352,7 +352,7 @@
+ wait_status = cp->status;
+ delchild(cp);
+ sigsetmask(mask);
+- return wait_status.w_status ? -1 : 0;
++ return wait_status ? -1 : 0;
+ }
+
+ /*