]> granicus.if.org Git - zfs/blob - config/kernel-aio-fsync.m4
Check for strlcat and strlcpy
[zfs] / config / kernel-aio-fsync.m4
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>
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