]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-aio-fsync.m4
Refresh control.
[mirror_zfs-debian.git] / config / kernel-aio-fsync.m4
CommitLineData
68d83c55
AX
1dnl #
2dnl # Linux 4.9-rc5+ ABI, removal of the .aio_fsync field
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_AIO_FSYNC], [
5 AC_MSG_CHECKING([whether fops->aio_fsync() exists])
6 ZFS_LINUX_TRY_COMPILE([
7 #include <linux/fs.h>
8
9 static const struct file_operations
10 fops __attribute__ ((unused)) = {
11 .aio_fsync = NULL,
12 };
13 ],[
14 ],[
15 AC_MSG_RESULT(yes)
16 AC_DEFINE(HAVE_FILE_AIO_FSYNC, 1, [fops->aio_fsync() exists])
17 ],[
18 AC_MSG_RESULT(no)
19 ])
20])
21