diff options
author | Gary Benson <gbenson@redhat.com> | 2015-06-11 10:58:41 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-06-11 10:58:41 +0100 |
commit | 198c808c87eac2d4605962c2f19191c8ca24d268 (patch) | |
tree | da24642f213fc9511278104456b38e68168863c4 | |
parent | 970cdef2612b098b457345025a08aba800991722 (diff) | |
download | gdb-198c808c87eac2d4605962c2f19191c8ca24d268.zip gdb-198c808c87eac2d4605962c2f19191c8ca24d268.tar.gz gdb-198c808c87eac2d4605962c2f19191c8ca24d268.tar.bz2 |
Fix ARI warning in linux-namespaces.c
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/nat/linux-namespaces.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 872d88a..0a00a22 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 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> |