Fix "file is executable, but no shebang" warnings
[zfs.git] / config / kernel-aio-fsync.m4
blob41b7a98a6b067419512e048c345b1c8c2e5f984d
1 dnl #
2 dnl # Linux 4.9-rc5+ ABI, removal of the .aio_fsync field
3 dnl #
4 AC_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>
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         ])