]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-vfs-fsync.m4
Linux 5.0 compat: ASM_BUG macro
[mirror_zfs.git] / config / kernel-vfs-fsync.m4
CommitLineData
48ef8ba0
BB
1dnl #
2dnl # 2.6.35 API change,
3dnl # Unused 'struct dentry *' removed from vfs_fsync() prototype.
4dnl #
93ce2b4c 5AC_DEFUN([ZFS_AC_KERNEL_2ARGS_VFS_FSYNC], [
48ef8ba0 6 AC_MSG_CHECKING([whether vfs_fsync() wants 2 args])
93ce2b4c 7 ZFS_LINUX_TRY_COMPILE([
48ef8ba0
BB
8 #include <linux/fs.h>
9 ],[
10 vfs_fsync(NULL, 0);
11 ],[
12 AC_MSG_RESULT(yes)
13 AC_DEFINE(HAVE_2ARGS_VFS_FSYNC, 1, [vfs_fsync() wants 2 args])
14 ],[
15 AC_MSG_RESULT(no)
16 ])
17])