[OB] Fix ARI warning in linux-namespaces.c

Message ID 1434016929-24009-1-git-send-email-gbenson@redhat.com
State New, archived
Headers

Commit Message

Gary Benson June 11, 2015, 10:02 a.m. UTC
  Hi all,

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

Pushed as obvious.

Cheers,
Gary

--
gdb/ChangeLog:

	* nat/linux-namespaces.c (gdb_wait.h): New include.
	(sys/wait.h): Do not include.
---
 gdb/ChangeLog              |    5 +++++
 gdb/nat/linux-namespaces.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)
  

Patch

diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c
index f710c03..98ae104 100644
--- a/gdb/nat/linux-namespaces.c
+++ b/gdb/nat/linux-namespaces.c
@@ -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>