summaryrefslogtreecommitdiff
path: root/lto-plugin/lto-plugin.c
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-05 08:06:25 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2010-12-05 08:06:25 +0000
commit13ac7a0f8ccbc9b5c1edb8e23ff43d62b0ba0534 (patch)
treeb83482850bc80775ca54aa8c43f57a164d38d68b /lto-plugin/lto-plugin.c
parentce38b977813a2f7f83673c183c9f4924f18a2547 (diff)
downloadgcc-13ac7a0f8ccbc9b5c1edb8e23ff43d62b0ba0534.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167468 138bc75d-0d04-0410-961f-82ee72b054a4
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 d6eb7eee92f..5ca4c9a27a3 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"