aboutsummaryrefslogtreecommitdiff
path: root/sim/m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2023-01-16 04:42:47 -0500
committerMike Frysinger <vapier@gentoo.org>2023-01-16 04:42:47 -0500
commitda8c9663995deb7abe63ca45251fc0264e031550 (patch)
treed7aa188bcb71826f138fcd5357336a6581afee70 /sim/m4
parent4cd7de783bc72cc1f44fe989e7a0c7feb10532d5 (diff)
downloadbinutils-da8c9663995deb7abe63ca45251fc0264e031550.zip
binutils-da8c9663995deb7abe63ca45251fc0264e031550.tar.gz
binutils-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/m4')
-rw-r--r--sim/m4/sim_ac_platform.m45
1 files changed, 1 insertions, 4 deletions
diff --git a/sim/m4/sim_ac_platform.m4 b/sim/m4/sim_ac_platform.m4
index 665c1bd..7331ef3 100644
--- a/sim/m4/sim_ac_platform.m4
+++ b/sim/m4/sim_ac_platform.m4
@@ -37,7 +37,6 @@ AC_CHECK_HEADERS_ONCE(m4_flatten([
sys/param.h
sys/resource.h
sys/socket.h
- sys/stat.h
sys/statfs.h
sys/termio.h
sys/termios.h
@@ -126,9 +125,7 @@ AC_CHECK_MEMBERS([[struct stat.st_dev], [struct stat.st_ino],
[[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif]])
+#include <sys/stat.h>]])
AC_CHECK_TYPES([__int128])
AC_CHECK_TYPES(socklen_t, [], [],