sparc: fix build of gdb/testsuite/gdb.arch/sparc-sysstep.c
authorJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 20 Nov 2015 09:48:56 +0000 (10:48 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Fri, 20 Nov 2015 09:48:56 +0000 (10:48 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/sparc-sysstep.c

index e584ef06d2f03ad269edffcbdde6e3bf2d29d54c..68d564f3236833b43befc1d6cc1827739394ca41 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-20  Jose E. Marchesi  <jose.marchesi@oracle.com>
+
+       * gdb.arch/sparc-sysstep.c: Include unistd.h for getpid.
+
 2015-11-19  Sandra Loosemore  <sandra@codesourcery.com>
 
        * gdb.base/nested-subp1.exp: Pass executable, not executable name,
index 79e344b0fe12975b885214816c57cdfd1d060fa1..1356339e7625723147510fb0ac5215cede0d3e8a 100644 (file)
@@ -18,6 +18,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <signal.h>
+#include <unistd.h>
 
 int global;