Create replacement sys/stat.h if needed.

Remove #ifdef HAVE_SYS_STAT_H wrapper.  ok djm@
This commit is contained in:
Darren Tucker committed 2025-09-05 17:50:18 +10:00
1 parent 59b80707c6
commit ea586edbcb
12 files changed
+12 -34

No files matched your search

+1 -3
View File
@@ -63,9 +63,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/socket.h>
+1 -1
View File
@@ -530,7 +530,7 @@ AC_CHECK_HEADERS([ \
# the equivalent file. This avoids having to wrap those includes in
# '#ifdef HAVE_FOO_H'. If we create any such headers, add the path to includes.
compatincludes=no
AC_CHECK_HEADERS([ifaddrs.h paths.h poll.h stdint.h sys/time.h util.h], [], [
AC_CHECK_HEADERS([ifaddrs.h paths.h poll.h stdint.h sys/stat.h sys/time.h util.h], [], [
compatincludes="`pwd`/openbsd-compat/include"
header="$compatincludes/$ac_header"
dir=`dirname "$header"`
+1 -3
View File
@@ -39,9 +39,7 @@
#include <stdlib.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#endif
+1 -3
View File
@@ -36,9 +36,7 @@
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
+1 -3
View File
@@ -74,9 +74,7 @@
#include "includes.h"
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <poll.h>
#include <sys/time.h>
#include <sys/wait.h>
+1 -3
View File
@@ -36,9 +36,7 @@
#include "includes.h"
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/wait.h>
+1 -3
View File
@@ -27,9 +27,7 @@
#include <sys/statvfs.h>
#endif
#include "openbsd-compat/sys-queue.h"
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/uio.h>
+1 -3
View File
@@ -18,9 +18,7 @@
#include "includes.h"
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <dirent.h>
#include <stdlib.h>
+1 -3
View File
@@ -19,9 +19,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/wait.h>
#ifdef HAVE_SYS_STATVFS_H
+1 -3
View File
@@ -43,9 +43,7 @@
#include "includes.h"
#include <sys/types.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <sys/resource.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
+1 -3
View File
@@ -32,9 +32,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include "openbsd-compat/sys-tree.h"
#include "openbsd-compat/sys-queue.h"
+1 -3
View File
@@ -29,9 +29,7 @@
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
#include <sys/stat.h>
#include <sys/time.h>
#include "openbsd-compat/sys-tree.h"
#include "openbsd-compat/sys-queue.h"