This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB PATCH] Fix ARI warning in linux-namespaces.c
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 11 Jun 2015 11:02:09 +0100
- Subject: [OB PATCH] Fix ARI warning in linux-namespaces.c
- Authentication-results: sourceware.org; auth=none
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(-)
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>
--
1.7.1