mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
waitpid.c (wait): Define as a macro that calls _cwait, so that this function works on MinGW.
2017-05-24 Eli Zaretskii <eliz@gnu.org> * libiberty/waitpid.c (wait) [__MINGW32__]: Define as a macro that calls _cwait, so that this function works on MinGW. From-SVN: r248430
This commit is contained in:
parent
8334904615
commit
1ab4db9379
@ -1,3 +1,8 @@
|
||||
2017-05-24 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* waitpid.c (wait) [__MINGW32__]: Define as a macro
|
||||
that calls _cwait, so that this function works on MinGW.
|
||||
|
||||
2017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
|
||||
|
||||
* d-demangle.c (dlang_hexdigit): New function.
|
||||
|
@ -23,6 +23,11 @@ does the return value. The third argument is unused in @libib{}.
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#include <process.h>
|
||||
#define wait(s) _cwait(s,pid,_WAIT_CHILD)
|
||||
#endif
|
||||
|
||||
pid_t
|
||||
waitpid (pid_t pid, int *stat_loc, int options ATTRIBUTE_UNUSED)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user