patch-freebsd_h 421 B

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