aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2015-03-17 11:26:09 +0000
committerGary Benson <gbenson@redhat.com>2015-03-17 11:26:09 +0000
commit7f3647e2ba4517be59ce531ec2297918b998fe3e (patch)
tree6449aa029e4eb42a362bfe663d06f192ee40b603 /gdb/common
parentc4b0b099b884e73d883f2b8c3ea8ffc9dc678902 (diff)
downloadgdb-7f3647e2ba4517be59ce531ec2297918b998fe3e.zip
gdb-7f3647e2ba4517be59ce531ec2297918b998fe3e.tar.gz
gdb-7f3647e2ba4517be59ce531ec2297918b998fe3e.tar.bz2
Remove forward declaration of struct stat
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. gdb/ChangeLog: PR gdb/18131 * common/common-remote-fileio.h (sys/stat.h): New include. (stuct stat): Remove forward declaration.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/common-remote-fileio.h3
1 files changed, 1 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