This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] procfs.c: Include "filestuff.h"
- From: Marcin Cieslak <saper at saper dot info>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 19 Aug 2015 16:51:31 +0000
- Subject: Re: [PATCH] procfs.c: Include "filestuff.h"
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot BSF dot 2 dot 11 dot 1508181807170 dot 7491 at z dot fncre dot vasb> <864mjv3e97 dot fsf at gmail dot com>
Fixes implicit function declaration
error in gdb/procfs.c:4927 about undeclared
make_cleanup_close().
gdb/ChangeLog:
PR build/18843
* procfs.c: Include "filestuff.h".
---
gdb/ChangeLog | 5 +++++
gdb/procfs.c | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4af881e..ec3519a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-18 Marcin Cieślak <saper@saper.info>
+
+ PR build/18843
+ * procfs.c: Include "filestuff.h".
+
2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
* remote.c (strprefix): New.
diff --git a/gdb/procfs.c b/gdb/procfs.c
index 42f1403..3d4f7be 100644
--- a/gdb/procfs.c
+++ b/gdb/procfs.c
@@ -30,6 +30,7 @@
#include "gdbthread.h"
#include "regcache.h"
#include "inf-child.h"
+#include "filestuff.h"
#if defined (NEW_PROC_API)
#define _STRUCTURED_PROC 1 /* Should be done by configure script. */
--
1.6.2.1