Fix gdb.trace/ftrace-lock.c compilation
authorPedro Alves <palves@redhat.com>
Tue, 1 Mar 2016 17:42:47 +0000 (17:42 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 1 Mar 2016 17:42:47 +0000 (17:42 +0000)
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>.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/ftrace-lock.c

index c992a59d889e4a9d9617ee38878c3ed3b2f20626..aeb28376aac08a23806a23763e7fa5af3b96b735 100644 (file)
@@ -1,3 +1,7 @@
+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"
index fd0d1f94aae9f9ecaff7fa311930dc6a8c1892be..ed07694553cb289ea757ab192176a82669cac2de 100644 (file)
@@ -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.  */