diff --git a/docs/CONTRIBUTORS b/docs/CONTRIBUTORS index abf1950b2..15b7a2e5a 100644 --- a/docs/CONTRIBUTORS +++ b/docs/CONTRIBUTORS @@ -27,6 +27,7 @@ James Hutchinson Jamey Hicks James Pallister Jan Van Winkel +Jean Berniolles Jeremy Bennett John Coiner John Demme diff --git a/src/V3Os.cpp b/src/V3Os.cpp index e7e9a8d5b..299d5c104 100644 --- a/src/V3Os.cpp +++ b/src/V3Os.cpp @@ -49,6 +49,14 @@ # include // mkdir # include // GetProcessMemoryInfo # include +// These macros taken from gdbsupport/gdb_wait.h in binutils-gdb +# ifndef WIFEXITED +# ifdef __MINGW32__ +# define WIFEXITED(w) (((w) & 0xC0000000) == 0) +# else +# define WIFEXITED(w) (((w) & 0377) == 0) +# endif +# endif #else # include # include // Needed on FreeBSD for WIFEXITED