]> granicus.if.org Git - zfs/blob - config/kernel-inode-set-flags.m4
Make hostid consistent in user and kernel space
[zfs] / config / kernel-inode-set-flags.m4
1 dnl #
2 dnl # 3.15 API change
3 dnl # inode_set_flags introduced to set i_flags
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_INODE_SET_FLAGS], [
6         AC_MSG_CHECKING([whether inode_set_flags() exists])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/fs.h>
9         ],[
10                 struct inode inode;
11                 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
12         ],[
13                 AC_MSG_RESULT(yes)
14                 AC_DEFINE(HAVE_INODE_SET_FLAGS, 1, [inode_set_flags() exists])
15         ],[
16                 AC_MSG_RESULT(no)
17         ])
18 ])