]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-in-compat-syscall.m4
Fix statfs(2) for 32-bit user space
[mirror_zfs.git] / config / kernel-in-compat-syscall.m4
1 dnl #
2 dnl # 4.5 API change
3 dnl # Added in_compat_syscall() which can be overridden on a per-
4 dnl # architecture basis. Prior to this is_compat_task() was the
5 dnl # provided interface.
6 dnl #
7 AC_DEFUN([ZFS_AC_KERNEL_IN_COMPAT_SYSCALL], [
8 AC_MSG_CHECKING([whether in_compat_syscall() is available])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/compat.h>
11 ],[
12 in_compat_syscall();
13 ],[
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_IN_COMPAT_SYSCALL, 1,
16 [in_compat_syscall() is available])
17 ],[
18 AC_MSG_RESULT(no)
19 ])
20 ])