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.
This commit is contained in:
parent
c4b0b099b8
commit
7f3647e2ba
|
@ -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>
|
2015-03-16 John Baldwin <jhb@FreeBSD.org>
|
||||||
|
|
||||||
* fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
|
* fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
|
||||||
|
|
|
@ -21,8 +21,7 @@
|
||||||
#define COMMON_REMOTE_FILEIO_H
|
#define COMMON_REMOTE_FILEIO_H
|
||||||
|
|
||||||
#include "gdb/fileio.h"
|
#include "gdb/fileio.h"
|
||||||
|
#include <sys/stat.h>
|
||||||
struct stat;
|
|
||||||
|
|
||||||
/* Pack a host-format integer into a byte buffer in big-endian format
|
/* Pack a host-format integer into a byte buffer in big-endian format
|
||||||
ready for transmission over the remote protocol. BYTES specifies
|
ready for transmission over the remote protocol. BYTES specifies
|
||||||
|
|
Loading…
Reference in New Issue