Remove forward declaration of struct stat
authorGary Benson <gbenson@redhat.com>
Tue, 17 Mar 2015 11:26:09 +0000 (11:26 +0000)
committerGary Benson <gbenson@redhat.com>
Tue, 17 Mar 2015 11:26:09 +0000 (11:26 +0000)
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.

gdb/ChangeLog
gdb/common/common-remote-fileio.h

index d984565e3f5b0ba2bb7445895ecb81cf37cd4393..10abae00ffc989cb332d9ff714574225eba4fb71 100644 (file)
@@ -1,3 +1,10 @@
+2015-03-17  Gary Benson <gbenson@redhat.com>
+           Luke Allardyce <lukeallardyce@gmail.com>
+
+       PR gdb/18131
+       * common/common-remote-fileio.h (sys/stat.h): New include.
+       (stuct stat): Remove forward declaration.
+
 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
 
        * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
index b8381868d6c1fec1ba4fdb600d63ca4c9bab1e6c..27bc585c88777ef82bc36f815a1d2a2a701d991c 100644 (file)
@@ -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