diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-03-19 08:18:46 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-03-19 08:18:46 +0100 |
commit | 15df2655d8fb8965e706b97167a4a3ea4dec6b03 (patch) | |
tree | f8fdf2ab35486f02b060a9bcf739316b9e2344b1 /gcc/lto | |
parent | e1e07cd6e6adb70cd2335eb28ce2c4c50333a95e (diff) | |
download | gcc-15df2655d8fb8965e706b97167a4a3ea4dec6b03.zip gcc-15df2655d8fb8965e706b97167a4a3ea4dec6b03.tar.gz gcc-15df2655d8fb8965e706b97167a4a3ea4dec6b03.tar.bz2 |
re PR lto/60571 (FTBFS on hurd-i386)
PR lto/60571
* lto.c (wait_for_child): Define WCONTINUED if not defined to 0.
Fix formatting.
From-SVN: r208675
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto/lto.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 11897cd..b8c2067 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,9 @@ +2014-03-19 Jakub Jelinek <jakub@redhat.com> + + PR lto/60571 + * lto.c (wait_for_child): Define WCONTINUED if not defined to 0. + Fix formatting. + 2014-03-18 Jakub Jelinek <jakub@redhat.com> PR sanitizer/60535 diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 91b43d9..9ebcdce 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -2476,7 +2476,10 @@ wait_for_child () int status; do { - int w = waitpid(0, &status, WUNTRACED | WCONTINUED); +#ifndef WCONTINUED +#define WCONTINUED 0 +#endif + int w = waitpid (0, &status, WUNTRACED | WCONTINUED); if (w == -1) fatal_error ("waitpid failed"); @@ -2485,7 +2488,7 @@ wait_for_child () else if (WIFSIGNALED (status)) fatal_error ("streaming subprocess was killed by signal"); } - while (!WIFEXITED(status) && !WIFSIGNALED(status)); + while (!WIFEXITED (status) && !WIFSIGNALED (status)); } #endif |