]>
Commit | Line | Data |
---|---|---|
802e7b5f LD |
1 | dnl # |
2 | dnl # 3.11 API change | |
3 | dnl # lseek_execute helper exported | |
4 | dnl # | |
5 | AC_DEFUN([ZFS_AC_KERNEL_LSEEK_EXECUTE], | |
6 | [AC_MSG_CHECKING([whether lseek_execute() is available]) | |
7 | ZFS_LINUX_TRY_COMPILE_SYMBOL([ | |
8 | #include <linux/fs.h> | |
9 | ], [ | |
10 | struct file *fp __attribute__ ((unused)) = NULL; | |
11 | struct inode *ip __attribute__ ((unused)) = NULL; | |
12 | loff_t offset __attribute__ ((unused)) = 0; | |
13 | loff_t maxsize __attribute__ ((unused)) = 0; | |
14 | ||
15 | lseek_execute(fp, ip, offset, maxsize); | |
16 | ], [lseek_exclusive], [fs/read_write.c], [ | |
17 | AC_MSG_RESULT(yes) | |
18 | AC_DEFINE(HAVE_LSEEK_EXECUTE, 1, | |
19 | [lseek_execute() is available]) | |
20 | ], [ | |
21 | AC_MSG_RESULT(no) | |
22 | ]) | |
23 | ]) |