summaryrefslogtreecommitdiff
path: root/mail/mailx/files/patch-cmd2.c
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2002-06-16 09:03:53 +0000
committerKris Kennaway <kris@FreeBSD.org>2002-06-16 09:03:53 +0000
commit1c26f5eca3ddbdc1ebc946456733f093001ac36d (patch)
tree1c36cc1a02eb76dae7282ade67ab015f80a5000a /mail/mailx/files/patch-cmd2.c
parentFix build on current. (diff)
Fix build on -current.
Submitted by: mike
Notes
Notes: svn path=/head/; revision=61346
Diffstat (limited to '')
-rw-r--r--mail/mailx/files/patch-cmd2.c20
1 files changed, 20 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");