This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB PATCH] Remove forward declaration of struct stat
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 17 Mar 2015 11:29:56 +0000
- Subject: [OB PATCH] Remove forward declaration of struct stat
- Authentication-results: sourceware.org; auth=none
Hi all,
Forward declarations of struct stat break the Windows build.
This commit removes a forward declaration of struct stat and
includes sys/stat.h directly instead.
Pushed as obvious.
Cheers,
Gary
---
gdb/ChangeLog:
PR gdb/18131
* common/common-remote-fileio.h (sys/stat.h): New include.
(stuct stat): Remove forward declaration.
---
gdb/ChangeLog | 7 +++++++
gdb/common/common-remote-fileio.h | 3 +--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gdb/common/common-remote-fileio.h b/gdb/common/common-remote-fileio.h
index b838186..27bc585 100644
--- a/gdb/common/common-remote-fileio.h
+++ b/gdb/common/common-remote-fileio.h
@@ -21,8 +21,7 @@
#define COMMON_REMOTE_FILEIO_H
#include "gdb/fileio.h"
-
-struct stat;
+#include <sys/stat.h>
/* Pack a host-format integer into a byte buffer in big-endian format
ready for transmission over the remote protocol. BYTES specifies
--
1.7.1