procfs.c: Include "filestuff.h"

Message ID alpine.BSF.2.11.1508191648410.7491@z.fncre.vasb
State Under Review, archived
Headers

Commit Message

Marcin Cieślak Aug. 19, 2015, 4:51 p.m. UTC
  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(-)
  

Patch

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.  */