Fix ARI warning in linux-namespaces.c
authorGary Benson <gbenson@redhat.com>
Thu, 11 Jun 2015 09:58:41 +0000 (10:58 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 11 Jun 2015 09:58:41 +0000 (10:58 +0100)
This commit fixes the following ARI warning:

  gdb/nat/linux-namespaces.c:28: regression: Do not include
  wait.h or sys/wait.h, instead include gdb_wait.h

gdb/ChangeLog:

* nat/linux-namespaces.c (gdb_wait.h): New include.
(sys/wait.h): Do not include.

gdb/ChangeLog
gdb/nat/linux-namespaces.c

index 872d88a9d027d557e6fa71e5b9a15c413db4a522..0a00a22bb80a8da127a9550a44f49d1678a0b3b7 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-11  Gary Benson <gbenson@redhat.com>
+
+       * nat/linux-namespaces.c (gdb_wait.h): New include.
+       (sys/wait.h): Do not include.
+
 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
 
        * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
index f710c03bf499d309a26874fdc3ee55c26415403e..98ae104ffb873f9203a51e338122af673e2dc28d 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/socket.h>
-#include <sys/wait.h>
+#include "gdb_wait.h"
 #include <signal.h>
 #include <sched.h>