Message ID | AANLkTik1kzbfLFXxJuaBbRbVY9-_cbCFf9T+yLtNw-z2@mail.gmail.com |
---|---|
State | New |
Headers | show |
On 12/04/2010 03:22 AM, Kai Tietz wrote: > * 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. Ok. r~
2010/12/5 Richard Henderson <rth@redhat.com>: > On 12/04/2010 03:22 AM, Kai Tietz wrote: >> * 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. > > Ok. > > > r~ > Committed at revision 167468. Thanks, Kai
Index: configure.ac =================================================================== --- configure.ac (revision 167453) +++ configure.ac (working copy) @@ -22,7 +22,7 @@ esac AC_TYPE_INT64_T AC_TYPE_UINT64_T -AC_CHECK_HEADERS(sys/wait.h) +AC_HEADER_SYS_WAIT AC_CONFIG_FILES(Makefile) AC_CONFIG_HEADERS(config.h) AC_OUTPUT Index: lto-plugin.c =================================================================== --- lto-plugin.c (revision 167453) +++ lto-plugin.c (working copy) @@ -50,6 +50,12 @@ #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"