diff options
author | Pedro Alves <palves@redhat.com> | 2016-03-01 17:42:47 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-03-01 17:42:47 +0000 |
commit | 86e501afd46d7f0d31738bd62457593401d79bad (patch) | |
tree | c29605a1434fea7f36eb7e61c1c67a03e7a7501e /gdb | |
parent | 1e903e320352db86233e1dd2d10fd140f5d4a887 (diff) | |
download | gdb-86e501afd46d7f0d31738bd62457593401d79bad.zip gdb-86e501afd46d7f0d31738bd62457593401d79bad.tar.gz gdb-86e501afd46d7f0d31738bd62457593401d79bad.tar.bz2 |
Fix gdb.trace/ftrace-lock.c compilation
Fixes, on F23:
.../src/gdb/testsuite/gdb.trace/ftrace-lock.c: In function 'gdb_agent_gdb_collect':
.../src/gdb/testsuite/gdb.trace/ftrace-lock.c:50:3: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
sleep (1);
^
gdb/testsuite/ChangeLog:
2016-03-01 Pedro Alves <palves@redhat.com>
* gdb.trace/ftrace-lock.c: Include <unistd.h>.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.trace/ftrace-lock.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index c992a59..aeb2837 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2016-03-01 Pedro Alves <palves@redhat.com> + * gdb.trace/ftrace-lock.c: Include <unistd.h>. + +2016-03-01 Pedro Alves <palves@redhat.com> + * gdb.threads/watchpoint-fork-child.c: Include "watchpoint-fork.h" before anything else. * gdb.threads/watchpoint-fork-mt.c: Likewise. Don't define diff --git a/gdb/testsuite/gdb.trace/ftrace-lock.c b/gdb/testsuite/gdb.trace/ftrace-lock.c index fd0d1f9..ed07694 100644 --- a/gdb/testsuite/gdb.trace/ftrace-lock.c +++ b/gdb/testsuite/gdb.trace/ftrace-lock.c @@ -16,6 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <pthread.h> +#include <unistd.h> #include "trace-common.h" /* Called if the testcase failed. */ |