X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=blobdiff_plain;f=lto-plugin%2Flto-plugin.c;h=5ca4c9a27a31269df761b6cde3fdffd06adfc3a3;hp=d2830283f6f52d83dd002bcc4ab93fca8cd99f5e;hb=13ac7a0f8ccbc9b5c1edb8e23ff43d62b0ba0534;hpb=975b6791235ee92d2dcd19b7dad0e9c27a209693 diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index d2830283f6f..5ca4c9a27a3 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -47,7 +47,15 @@ along with this program; see the file COPYING3. If not see #include #include #include +#ifdef HAVE_SYS_WAIT_H #include +#endif +#ifndef WIFEXITED +#define WIFEXITED(S) (((S) & 0xff) == 0) +#endif +#ifndef WEXITSTATUS +#define WEXITSTATUS(S) (((S) & 0xff00) >> 8) +#endif #include #include #include "../gcc/lto/common.h"