]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-tmpfile.m4
Linux 5.0 compat: ASM_BUG macro
[mirror_zfs.git] / config / kernel-tmpfile.m4
CommitLineData
ace1eae8
CC
1dnl #
2dnl # 3.11 API change
3dnl # Add support for i_op->tmpfile
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_TMPFILE], [
6 AC_MSG_CHECKING([whether i_op->tmpfile() exists])
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/fs.h>
9 int tmpfile(struct inode *inode, struct dentry *dentry,
10 umode_t mode) { return 0; }
11 static struct inode_operations
12 iops __attribute__ ((unused)) = {
13 .tmpfile = tmpfile,
14 };
15 ],[
16 ],[
17 AC_MSG_RESULT(yes)
18 AC_DEFINE(HAVE_TMPFILE, 1,
19 [i_op->tmpfile() exists])
20 ],[
21 AC_MSG_RESULT(no)
22 ])
23])