]> git.proxmox.com Git - mirror_spl-debian.git/blob - config/kernel-vfs-fsync.m4
dch: close a bug and refresh timestamp.
[mirror_spl-debian.git] / config / kernel-vfs-fsync.m4
1 dnl #
2 dnl # 2.6.35 API change,
3 dnl # Unused 'struct dentry *' removed from vfs_fsync() prototype.
4 dnl #
5 AC_DEFUN([SPL_AC_2ARGS_VFS_FSYNC], [
6 AC_MSG_CHECKING([whether vfs_fsync() wants 2 args])
7 SPL_LINUX_TRY_COMPILE([
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 ])