diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-01-16 04:42:47 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2023-01-16 04:42:47 -0500 |
commit | da8c9663995deb7abe63ca45251fc0264e031550 (patch) | |
tree | d7aa188bcb71826f138fcd5357336a6581afee70 /sim/ppc | |
parent | 4cd7de783bc72cc1f44fe989e7a0c7feb10532d5 (diff) | |
download | gdb-da8c9663995deb7abe63ca45251fc0264e031550.zip gdb-da8c9663995deb7abe63ca45251fc0264e031550.tar.gz gdb-da8c9663995deb7abe63ca45251fc0264e031550.tar.bz2 |
sim: assume sys/stat.h always exists (via gnulib)
We have many uses of sys/stat.h that are unprotected by HAVE_SYS_STAT_H,
so this is more formalizing the reality that we require this header.
Since we switched to gnulib, it guarantees that a sys/stat.h exists
for us to include, so we're doubly OK.
Diffstat (limited to 'sim/ppc')
-rw-r--r-- | sim/ppc/emul_unix.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c index 2872d23..be9e838 100644 --- a/sim/ppc/emul_unix.c +++ b/sim/ppc/emul_unix.c @@ -1055,7 +1055,6 @@ typedef uint32_t solaris_ino_t; typedef uint32_t solaris_mode_t; typedef uint32_t solaris_nlink_t; -#ifdef HAVE_SYS_STAT_H #define SOLARIS_ST_FSTYPSZ 16 /* array size for file system type name */ /* AIX 7.1 defines st_pad[123] to st_[amc]tim.tv_pad, respectively */ @@ -1145,7 +1144,6 @@ convert_to_solaris_stat(unsigned_word addr, emul_write_buffer(&target, addr, sizeof(target), processor, cia); } -#endif /* HAVE_SYS_STAT_H */ #ifndef HAVE_STAT #define do_solaris_stat 0 @@ -2011,7 +2009,6 @@ typedef int32_t linux_time_t; typedef int32_t linux_clock_t; typedef int32_t linux_daddr_t; -#ifdef HAVE_SYS_STAT_H /* For the PowerPC, don't both with the 'old' stat structure, since there should be no extant binaries with that structure. */ @@ -2082,7 +2079,6 @@ convert_to_linux_stat(unsigned_word addr, emul_write_buffer(&target, addr, sizeof(target), processor, cia); } -#endif /* HAVE_SYS_STAT_H */ #ifndef HAVE_STAT #define do_linux_stat 0 |