diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-03-30 23:05:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-03-30 23:05:04 +0000 |
commit | 0b3189e79f87c6d8927a96918b2ee53456df4928 (patch) | |
tree | 96a73acd062cce5897fb331039d0cb1cb6442134 /libgo/Makefile.am | |
parent | 8955c80a1cc754999cfa93d03c04307281e6136f (diff) | |
download | gcc-0b3189e79f87c6d8927a96918b2ee53456df4928.zip gcc-0b3189e79f87c6d8927a96918b2ee53456df4928.tar.gz gcc-0b3189e79f87c6d8927a96918b2ee53456df4928.tar.bz2 |
libgo: Use waitpid on systems which do not have wait4.
From-SVN: r171758
Diffstat (limited to 'libgo/Makefile.am')
-rw-r--r-- | libgo/Makefile.am | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libgo/Makefile.am b/libgo/Makefile.am index 476d4aa..a2f2d54 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -1246,13 +1246,20 @@ endif # !LIBGO_IS_SOLARIS endif # !LIBGO_IS_LINUX -# Define ForkExec, PtraceForkExec, Exec, and Wait4. +# Define ForkExec, PtraceForkExec, and Exec. if LIBGO_IS_RTEMS syscall_exec_os_file = syscalls/exec_stubs.go else syscall_exec_os_file = syscalls/exec.go endif +# Define Wait4. +if HAVE_WAIT4 +syscall_wait_file = syscalls/wait4.go +else +syscall_wait_file = syscalls/waitpid.go +endif + # Define Sleep. if LIBGO_IS_RTEMS syscall_sleep_file = syscalls/sleep_rtems.go @@ -1329,6 +1336,7 @@ go_syscall_files = \ $(syscall_errstr_decl_file) \ syscalls/exec_helpers.go \ $(syscall_exec_os_file) \ + $(syscall_wait_file) \ $(syscall_filesize_file) \ $(syscall_stat_file) \ $(syscall_sleep_file) \ |