aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-11-19 10:13:46 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-11-19 10:13:46 +0000
commite9831ca0d0ca81e4fdbae886e046a232c2e92d36 (patch)
tree38f40b970a93fd0559cb16776a75f159fc13a0f8 /gcc/system.h
parenta6458d1dddddd3501ffc2a8e9e4ff02c9266c6da (diff)
downloadgcc-e9831ca0d0ca81e4fdbae886e046a232c2e92d36.zip
gcc-e9831ca0d0ca81e4fdbae886e046a232c2e92d36.tar.gz
gcc-e9831ca0d0ca81e4fdbae886e046a232c2e92d36.tar.bz2
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
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h17
1 files changed, 17 insertions, 0 deletions
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 <sys/wait.h>
+#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