Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/user-statx.m4
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dnl #
dnl # Check for statx() function and STATX_MNT_ID availability
dnl #
AC_DEFUN([ZFS_AC_CONFIG_USER_STATX], [
AC_CHECK_HEADERS([linux/stat.h],
AC_CHECK_HEADERS([sys/stat.h],
[have_stat_headers=yes],
[have_stat_headers=no])

Expand All @@ -14,7 +14,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_STATX], [
AC_MSG_CHECKING([for STATX_MNT_ID])
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM([[
#include <linux/stat.h>
#include <sys/stat.h>
]], [[
struct statx stx;
int mask = STATX_MNT_ID;
Expand All @@ -29,6 +29,6 @@ AC_DEFUN([ZFS_AC_CONFIG_USER_STATX], [
])
])
], [
AC_MSG_WARN([linux/stat.h not found; skipping statx support])
AC_MSG_WARN([sys/stat.h not found; skipping statx support])
])
]) dnl end AC_DEFUN
2 changes: 1 addition & 1 deletion include/os/linux/spl/sys/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
#ifndef _SPL_STAT_H
#define _SPL_STAT_H

#include <linux/stat.h>
#include <sys/stat.h>

#endif /* SPL_STAT_H */
2 changes: 1 addition & 1 deletion lib/libspl/include/os/linux/sys/stat.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#ifdef HAVE_STATX
#include <fcntl.h>
#include <linux/stat.h>
#include <sys/stat.h>
#endif

/*
Expand Down
Loading