# HG changeset patch # User Richard M. Stallman # Date 793016854 0 # Node ID d8bc42dd72352195c408fbe2b6ebe31b781a373d # Parent 3dc1120ac15ca32ce859f975a6683b61f0b4228f New alternative specified by WAIT_USE_INT. diff -r 3dc1120ac15c -r d8bc42dd7235 src/syswait.h --- a/src/syswait.h Fri Feb 17 08:48:02 1995 +0000 +++ b/src/syswait.h Fri Feb 17 10:27:34 1995 +0000 @@ -23,7 +23,17 @@ #ifndef VMS #ifndef WAITTYPE -#if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) || defined (LINUX) || defined (WAIT_USE_INT) + +#ifdef WAIT_USE_INT +/* Some systems have union wait in their header, but we should use + int regardless of that. */ +#include +#define WAITTYPE int +#define WRETCODE(w) WEXITSTATUS (w) + +#else /* not WAIT_USE_INT */ + +#if (!defined (BSD) && !defined (UNIPLUS) && !defined (STRIDE) && !(defined (HPUX) && !defined (NOMULTIPLEJOBS)) && !defined (HAVE_WAIT_HEADER)) || defined (LINUX) #define WAITTYPE int #define WIFSTOPPED(w) ((w&0377) == 0177) #define WIFSIGNALED(w) ((w&0377) != 0177 && (w&~0377) == 0) @@ -34,7 +44,9 @@ #ifndef WCOREDUMP #define WCOREDUMP(w) ((w&0200) != 0) #endif + #else + #ifdef BSD4_1 #include #else @@ -72,8 +84,11 @@ #define WIFEXITED(w) (WTERMSIG (w) == 0) #endif #endif /* BSD or UNIPLUS or STRIDE */ +#endif /* not WAIT_USE_INT */ #endif /* no WAITTYPE */ + #else /* VMS */ + #define WAITTYPE int #define WIFSTOPPED(w) 0 #define WIFSIGNALED(w) 0 @@ -86,4 +101,5 @@ #include #include #include "vmsproc.h" + #endif /* VMS */