aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch
diff options
context:
space:
mode:
authorJose E. Marchesi <jose.marchesi@oracle.com>2015-11-20 10:48:56 +0100
committerJose E. Marchesi <jose.marchesi@oracle.com>2015-11-20 10:48:56 +0100
commit9c88ed8f116dc5f9471280c73f9ab08c81a86f2d (patch)
tree5be6a7a2667adfb7fb6cd1fe2ad9756f817476a9 /gdb/testsuite/gdb.arch
parent96161e2527c6fdc5c507fa1c0b8e7b8e7a08a03e (diff)
downloadgdb-9c88ed8f116dc5f9471280c73f9ab08c81a86f2d.zip
gdb-9c88ed8f116dc5f9471280c73f9ab08c81a86f2d.tar.gz
gdb-9c88ed8f116dc5f9471280c73f9ab08c81a86f2d.tar.bz2
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 <jose.marchesi@oracle.com> * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r--gdb/testsuite/gdb.arch/sparc-sysstep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/sparc-sysstep.c b/gdb/testsuite/gdb.arch/sparc-sysstep.c
index 79e344b..1356339 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 <http://www.gnu.org/licenses/>. */
#include <signal.h>
+#include <unistd.h>
int global;