aboutsummaryrefslogtreecommitdiff
path: root/lto-plugin/lto-plugin.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-12-05 08:06:25 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2010-12-05 09:06:25 +0100
commitec692d5f108e2f485e1aa8c6d7760af9fb32ab6e (patch)
treeb83482850bc80775ca54aa8c43f57a164d38d68b /lto-plugin/lto-plugin.c
parente7abfe07eeb03485efb146e40cbece2d55dcdbc0 (diff)
downloadgcc-ec692d5f108e2f485e1aa8c6d7760af9fb32ab6e.zip
gcc-ec692d5f108e2f485e1aa8c6d7760af9fb32ab6e.tar.gz
gcc-ec692d5f108e2f485e1aa8c6d7760af9fb32ab6e.tar.bz2
config.h.in: Regenerated.
2010-12-05 Kai Tietz <kai.tietz@onevision.com> * config.h.in: Regenerated. * configure: Regenerated. * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT. * lto-plugin.c (WIFEXITED): Define default. (WEXITSTATUS): Likeiwse. From-SVN: r167468
Diffstat (limited to 'lto-plugin/lto-plugin.c')
-rw-r--r--lto-plugin/lto-plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index d6eb7ee..5ca4c9a 100644
--- a/lto-plugin/lto-plugin.c
+++ b/lto-plugin/lto-plugin.c
@@ -50,6 +50,12 @@ along with this program; see the file COPYING3. If not see
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h>
#endif
+#ifndef WIFEXITED
+#define WIFEXITED(S) (((S) & 0xff) == 0)
+#endif
+#ifndef WEXITSTATUS
+#define WEXITSTATUS(S) (((S) & 0xff00) >> 8)
+#endif
#include <libiberty.h>
#include <hashtab.h>
#include "../gcc/lto/common.h"