* [PATCH] Fix gdb.base/catch-fork-kill.c compilation
@ 2016-03-01 17:14 Pedro Alves
2016-03-01 17:15 ` Pedro Alves
0 siblings, 1 reply; 2+ messages in thread
From: Pedro Alves @ 2016-03-01 17:14 UTC (permalink / raw)
To: gdb-patches
Fixes:
Running .../src/gdb/testsuite/gdb.base/catch-fork-kill.exp ...
gdb compile failed, .../src/gdb/testsuite/gdb.base/catch-fork-kill.c: In function 'main':
.../src/gdb/testsuite/gdb.base/catch-fork-kill.c:81:4: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration]
wait (NULL);
^
gdb/testsuite/ChangeLog:
2016-03-01 Pedro Alves <palves@redhat.com>
* gdb.base/catch-fork-kill.c: Include <sys/wait.h>.
---
gdb/testsuite/ChangeLog | 4 ++++
gdb/testsuite/gdb.base/catch-fork-kill.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index d77645a..49e87bc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2016-03-01 Pedro Alves <palves@redhat.com>
+
+ * gdb.base/catch-fork-kill.c: Include <sys/wait.h>.
+
2016-03-01 Yao Qi <yao.qi@linaro.org>
* gdb.arch/arm-disp-step.exp: Use standard_testfile and
diff --git a/gdb/testsuite/gdb.base/catch-fork-kill.c b/gdb/testsuite/gdb.base/catch-fork-kill.c
index 607df2e..eb5a33b 100644
--- a/gdb/testsuite/gdb.base/catch-fork-kill.c
+++ b/gdb/testsuite/gdb.base/catch-fork-kill.c
@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
+#include <sys/wait.h>
int fds[2] = { -1, -1 };
--
2.5.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix gdb.base/catch-fork-kill.c compilation
2016-03-01 17:14 [PATCH] Fix gdb.base/catch-fork-kill.c compilation Pedro Alves
@ 2016-03-01 17:15 ` Pedro Alves
0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2016-03-01 17:15 UTC (permalink / raw)
To: GDB Patches
Forgot to mention that I pushed it as obvious...
Thanks,
Pedro Alves
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-01 17:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-01 17:14 [PATCH] Fix gdb.base/catch-fork-kill.c compilation Pedro Alves
2016-03-01 17:15 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).