This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: New ARI warning Sat Mar 1 01:53:24 UTC 2014
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Sat, 1 Mar 2014 17:25:42 +0100 (CET)
- Subject: Re: New ARI warning Sat Mar 1 01:53:24 UTC 2014
- Authentication-results: sourceware.org; auth=none
- References: <20140301015324 dot GA10090 at sourceware dot org>
> Date: Sat, 1 Mar 2014 01:53:25 +0000
> From: GDB Administrator <gdbadmin@sourceware.org>
>
> 456a457
> > gdb/obsd-nat.c:28: regression: wait.h: Do not include wait.h or sys/wait.h, instead include gdb_wait.h
> gdb/obsd-nat.c:28:#include <sys/wait.h>
>
>From dc92ace0532a42c035eacc506901cf3b0da50c1d Mon Sep 17 00:00:00 2001
From: Mark Kettenis <kettenis@gnu.org>
Date: Sat, 1 Mar 2014 17:13:47 +0100
Subject: [PATCH] Silence ARI warning.
gdb/ChangeLog:
* obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
---
gdb/ChangeLog | 4 ++++
gdb/obsd-nat.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index db7cd03..43243a6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2014-03-01 Mark Kettenis <kettenis@gnu.org>
+ * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
+
+2014-03-01 Mark Kettenis <kettenis@gnu.org>
+
* i386obsd-nat.c: Include "obsd-nat.h".
(_initialize_i386obsd_nat): Call obsd_add_target instead of
add_target.
diff --git a/gdb/obsd-nat.c b/gdb/obsd-nat.c
index bef03d3..f53e616 100644
--- a/gdb/obsd-nat.c
+++ b/gdb/obsd-nat.c
@@ -25,7 +25,7 @@
#include "gdb_assert.h"
#include <sys/types.h>
#include <sys/ptrace.h>
-#include <sys/wait.h>
+#include "gdb_wait.h"
#include "inf-child.h"
#include "obsd-nat.h"
--
1.8.5.3