summaryrefslogtreecommitdiff
path: root/gcc/protoize.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-19 10:13:46 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1998-11-19 10:13:46 +0000
commit5a3ee0b11900ce0cb04fe347d1dc01ef501d6add (patch)
tree38f40b970a93fd0559cb16776a75f159fc13a0f8 /gcc/protoize.c
parent1ed7db2f1203ed557f10d87a5496286c6f0fea14 (diff)
downloadgcc-5a3ee0b11900ce0cb04fe347d1dc01ef501d6add.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23712 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r--gcc/protoize.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c
index e5bed8dfc88..659dab7a6d8 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -139,23 +139,9 @@ typedef char * const_pointer_type;
#if defined(POSIX)
#include <signal.h>
-#include <sys/wait.h>
#else /* !defined(POSIX) */
-#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
-
/* Declaring stat or __flsbuf with a prototype
causes conflicts with system headers on some systems. */