* don't rely on ancient union wait related internals in <sys/wait.h>

* fetch missing prototypes
This commit is contained in:
naddy 2011-11-13 11:51:54 +00:00
parent 42c8529b0d
commit ada2279fa8
3 changed files with 25 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.20 2011/06/23 22:50:27 naddy Exp $
# $OpenBSD: Makefile,v 1.21 2011/11/13 11:51:54 naddy Exp $
COMMENT= move your mail box to another location
DISTNAME= movemail-1.0
REVISION = 1
REVISION= 2
CATEGORIES= mail
MASTER_SITES= http://people.freebsd.org/~wosch/src/

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-freebsd_h,v 1.1 2011/11/13 11:51:54 naddy Exp $
--- freebsd.h.orig Sun Nov 13 04:46:05 2011
+++ freebsd.h Sun Nov 13 04:46:27 2011
@@ -96,7 +96,7 @@
#ifdef emacs
#include <sys/wait.h>
#endif
-#define WRETCODE(w) (_W_INT(w) >> 8)
+#define WRETCODE(w) WEXITSTATUS (w)
/* Needed to avoid hanging when child process writes an error message
and exits -- enami tsugutomo <enami@ba2.so-net.or.jp>. */

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-movemail_c,v 1.1 2011/11/13 11:51:54 naddy Exp $
--- movemail.c.orig Sun Nov 13 04:37:47 2011
+++ movemail.c Sun Nov 13 04:38:07 2011
@@ -61,6 +61,7 @@ Boston, MA 02111-1307, USA. */
#include <sys/file.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <errno.h>
#include "syswait.h"
#ifdef MAIL_USE_POP