aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-06-16 17:03:53 +0800
committerkris <kris@FreeBSD.org>2002-06-16 17:03:53 +0800
commit9672beca009ec4a460ebca0061e258f0c41c0170 (patch)
treeabb7d06e4579115adba7c1d1f99dbfacc8d6a149 /mail
parentf4b2c221c64457a36c9c4800109c691806bc8217 (diff)
downloadfreebsd-ports-gnome-9672beca009ec4a460ebca0061e258f0c41c0170.tar.gz
freebsd-ports-gnome-9672beca009ec4a460ebca0061e258f0c41c0170.tar.zst
freebsd-ports-gnome-9672beca009ec4a460ebca0061e258f0c41c0170.zip
Fix build on -current.
Submitted by: mike
Diffstat (limited to 'mail')
-rw-r--r--mail/mailx/files/patch-cmd2.c20
-rw-r--r--mail/mailx/files/patch-fio.c20
-rw-r--r--mail/mailx/files/patch-popen.c43
3 files changed, 83 insertions, 0 deletions
diff --git a/mail/mailx/files/patch-cmd2.c b/mail/mailx/files/patch-cmd2.c
new file mode 100644
index 000000000000..e99b5f35c967
--- /dev/null
+++ b/mail/mailx/files/patch-cmd2.c
@@ -0,0 +1,20 @@
+--- cmd2.c Sun Mar 8 04:46:25 1998
++++ cmd2.c Tue Jun 4 20:59:44 2002
+@@ -367,7 +367,7 @@
+ core()
+ {
+ int pid;
+- extern union wait wait_status;
++ extern int wait_status;
+
+ switch (pid = vfork()) {
+ case -1:
+@@ -380,7 +380,7 @@
+ printf("Okie dokie");
+ fflush(stdout);
+ wait_child(pid);
+- if (wait_status.w_coredump)
++ if (WCOREDUMP(wait_status))
+ printf(" -- Core dumped.\n");
+ else
+ printf(" -- Can't dump core.\n");
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;
+ }
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;
+ }
+
+ /*