[ANNOUNCEMENT] TEST: Cygwin 3.1.0-0.3
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Sep 3 10:48:00 GMT 2019
On Sep 3 14:56, Biswapriyo Nath wrote:
> While compiling cygwin with gcc version 7.4.0 (GCC) this error is shown:
>
> Making all in reent
> /d/newlib-cygwin/newlib/libc/reent/execr.c: In function ‘_wait_r’:
> /d/newlib-cygwin/newlib/libc/reent/execr.c:120:14: warning: implicit
> declaration of function ‘_wait’; did you mean ‘wait’?
> [-Wimplicit-function-declaration]
> if ((ret = _wait (status)) == -1 && errno != 0)
> ^~~~~
> wait
The attached patch should fix it.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
From 4d04ee50958deebc8c024cbb23f6164f0bf21ae1 Mon Sep 17 00:00:00 2001
From: Corinna Vinschen <corinna@vinschen.de>
Date: Tue, 3 Sep 2019 12:45:55 +0200
Subject: [PATCH] Cygwin: sys/wait.h: Add _wait prototype to avoid compiler
warning
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
---
winsup/cygwin/include/sys/wait.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/winsup/cygwin/include/sys/wait.h b/winsup/cygwin/include/sys/wait.h
index 97e5d9998114..1ed1f5a2e801 100644
--- a/winsup/cygwin/include/sys/wait.h
+++ b/winsup/cygwin/include/sys/wait.h
@@ -22,6 +22,10 @@ pid_t waitpid (pid_t __pid, int *__status, int __options);
pid_t wait3 (int *__status, int __options, struct rusage *__rusage);
pid_t wait4 (pid_t __pid, int *__status, int __options, struct rusage *__rusage);
+#ifdef _COMPILING_NEWLIB
+pid_t _wait (int *);
+#endif
+
#ifdef __cplusplus
}
#endif
--
2.20.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20190903/f58139dc/attachment.sig>
More information about the Cygwin
mailing list