From e9831ca0d0ca81e4fdbae886e046a232c2e92d36 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 19 Nov 1998 10:13:46 +0000 Subject: configure.in: Don't do AC_CHECK_HEADERS(wait.h sys/wait.h). * configure.in: Don't do AC_CHECK_HEADERS(wait.h sys/wait.h). Instead call AC_HEADER_SYS_WAIT. * collect2.c: Don't provide defaults for sys/wait.h macros. * gcc.c: Likewise. * protoize.c: Likewise. Also, don't include sys/wait.h. * system.h: Include sys/wait.h and provide macro defaults. From-SVN: r23712 --- gcc/system.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gcc/system.h') diff --git a/gcc/system.h b/gcc/system.h index ca786a4..f876c54 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -156,6 +156,23 @@ extern int errno; # define O_WRONLY 1 #endif +#ifdef HAVE_SYS_WAIT_H +#include +#endif + +#ifndef WIFSIGNALED +#define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f) +#endif +#ifndef WTERMSIG +#define WTERMSIG(S) ((S) & 0x7f) +#endif +#ifndef WIFEXITED +#define WIFEXITED(S) (((S) & 0xff) == 0) +#endif +#ifndef WEXITSTATUS +#define WEXITSTATUS(S) (((S) & 0xff00) >> 8) +#endif + #ifndef bcopy -- cgit v1.1