From 9c88ed8f116dc5f9471280c73f9ab08c81a86f2d Mon Sep 17 00:00:00 2001 From: "Jose E. Marchesi" Date: Fri, 20 Nov 2015 10:48:56 +0100 Subject: [PATCH] sparc: fix build of gdb/testsuite/gdb.arch/sparc-sysstep.c This patch adds a missing include that makes the test program to not be built (--Wimplicit-function-declaration). gdb/testsuite/ChangeLog: 2015-11-20 Jose E. Marchesi * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.arch/sparc-sysstep.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e584ef06d2f..68d564f3236 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-11-20 Jose E. Marchesi + + * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid. + 2015-11-19 Sandra Loosemore * gdb.base/nested-subp1.exp: Pass executable, not executable name, diff --git a/gdb/testsuite/gdb.arch/sparc-sysstep.c b/gdb/testsuite/gdb.arch/sparc-sysstep.c index 79e344b0fe1..1356339e762 100644 --- a/gdb/testsuite/gdb.arch/sparc-sysstep.c +++ b/gdb/testsuite/gdb.arch/sparc-sysstep.c @@ -18,6 +18,7 @@ along with this program. If not, see . */ #include +#include int global; -- 2.30.2