]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-file-inode.m4
Fix config issues: frame size and headers
[FreeBSD/FreeBSD.git] / config / kernel-file-inode.m4
1 dnl #
2 dnl # 3.19 API change
3 dnl # struct access f->f_dentry->d_inode was replaced by accessor function
4 dnl # file_inode(f)
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_FILE_INODE], [
7         AC_MSG_CHECKING([whether file_inode() is available])
8         ZFS_LINUX_TRY_COMPILE([
9                 #include <linux/fs.h>
10         ],[
11                 struct file *f = NULL;
12                 file_inode(f);
13         ],[
14                 AC_MSG_RESULT(yes)
15                 AC_DEFINE(HAVE_FILE_INODE, 1, [file_inode() is available])
16         ],[
17                 AC_MSG_RESULT(no)
18         ])
19 ])