diff options
author | Pedro Alves <palves@redhat.com> | 2016-03-01 17:11:57 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-03-01 17:11:57 +0000 |
commit | 6ccb54e2a82ca934f6d430b87ab015b7bfecc413 (patch) | |
tree | affa75d259fbba5d7ba2f6ca767aef9acbb1fa9a /gdb/testsuite | |
parent | 2955a517f3191a2972c3805899be8aab2b41e583 (diff) | |
download | gdb-6ccb54e2a82ca934f6d430b87ab015b7bfecc413.zip gdb-6ccb54e2a82ca934f6d430b87ab015b7bfecc413.tar.gz gdb-6ccb54e2a82ca934f6d430b87ab015b7bfecc413.tar.bz2 |
Fix gdb.base/catch-fork-kill.c compilation
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>.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/catch-fork-kill.c | 1 |
2 files changed, 5 insertions, 0 deletions
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 }; |