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 872d88a..0a00a22 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 f710c03..98ae104 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>