]> git.proxmox.com Git - mirror_spl-debian.git/blame - config/kernel-vfs-fsync.m4
dch: close a bug and refresh timestamp.
[mirror_spl-debian.git] / config / kernel-vfs-fsync.m4
CommitLineData
34ee731f
AX
1dnl #
2dnl # 2.6.35 API change,
3dnl # Unused 'struct dentry *' removed from vfs_fsync() prototype.
4dnl #
5AC_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])