ports/mail/movemail/patches/patch-freebsd_h

11 lines
357 B
Text

--- 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>. */