aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixinc/tests
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2004-04-24 22:42:29 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-04-24 22:42:29 +0000
commitd3535e80704205ad87e0b838d97dd630d4ec1359 (patch)
treebc0d50bcb28a878875c0f8d9b868f09a581c32e6 /gcc/fixinc/tests
parent062bf895938ee3130690ac20a8b571f6d61e7dc1 (diff)
downloadgcc-d3535e80704205ad87e0b838d97dd630d4ec1359.zip
gcc-d3535e80704205ad87e0b838d97dd630d4ec1359.tar.gz
gcc-d3535e80704205ad87e0b838d97dd630d4ec1359.tar.bz2
inclhack.def (aix_syswait_2): New fix.
* fixinc/inclhack.def (aix_syswait_2): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/sys/wait.h: Update for new test. Co-Authored-By: Bruce Korb <bkorb@gnu.org> From-SVN: r81147
Diffstat (limited to 'gcc/fixinc/tests')
-rw-r--r--gcc/fixinc/tests/base/sys/wait.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/fixinc/tests/base/sys/wait.h b/gcc/fixinc/tests/base/sys/wait.h
index c0edf05..a0311c6 100644
--- a/gcc/fixinc/tests/base/sys/wait.h
+++ b/gcc/fixinc/tests/base/sys/wait.h
@@ -17,6 +17,11 @@ extern pid_t wait3();
#endif /* AIX_SYSWAIT_CHECK */
+#if defined( AIX_SYSWAIT_2_CHECK )
+#define WSTOPSIG(__x) (int)(WIFSTOPPED(__x) ? (int)((((unsigned int)__x) >> 8) & 0xff) : -1)
+#endif /* AIX_SYSWAIT_2_CHECK */
+
+
#if defined( NEXT_WAIT_UNION_CHECK )
extern pid_d wait(void*);
#endif /* NEXT_WAIT_UNION_CHECK */