]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-lseek-execute.m4
Don't assume pthread_t is uint_t for portability
[mirror_zfs.git] / config / kernel-lseek-execute.m4
CommitLineData
802e7b5f
LD
1dnl #
2dnl # 3.11 API change
3dnl # lseek_execute helper exported
4dnl #
5AC_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])