From 34a4d873ad02e1be335d4cd57db3e60196e24137 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 8 Aug 2012 09:39:36 +0000 Subject: [PATCH] * include/sys/wait.h (_wait): Define when building newlib. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/sys/wait.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e70e7aa40..ee1a2ccca 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2012-08-08 Corinna Vinschen + + * include/sys/wait.h (_wait): Define when building newlib. + 2012-08-07 Christopher Faylor * signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr. diff --git a/winsup/cygwin/include/sys/wait.h b/winsup/cygwin/include/sys/wait.h index 5dea7283a..be3e56fd2 100644 --- a/winsup/cygwin/include/sys/wait.h +++ b/winsup/cygwin/include/sys/wait.h @@ -1,6 +1,6 @@ /* sys/wait.h - Copyright 1997, 1998, 2001, 2002, 2003, 2004, 2006, 2011 Red Hat, Inc. + Copyright 1997, 1998, 2001, 2002, 2003, 2004, 2006, 2011, 2012 Red Hat, Inc. This file is part of Cygwin. @@ -44,6 +44,10 @@ pid_t waitpid (pid_t __pid, __wait_status_ptr_t __status, int __options); pid_t wait3 (__wait_status_ptr_t __status, int __options, struct rusage *__rusage); pid_t wait4 (pid_t __pid, __wait_status_ptr_t __status, int __options, struct rusage *__rusage); +#ifdef _COMPILING_NEWLIB +pid_t _wait (__wait_status_ptr_t __status); +#endif + union wait { int w_status;