aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-in-compat-syscall.m4
blob: baaac8c4fda2652e0ce80058d923b694b51b9dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl #
dnl # 4.5 API change
dnl # Added in_compat_syscall() which can be overridden on a per-
dnl # architecture basis.  Prior to this is_compat_task() was the
dnl # provided interface.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_IN_COMPAT_SYSCALL], [
	ZFS_LINUX_TEST_SRC([in_compat_syscall], [
		#include <linux/compat.h>
	],[
		in_compat_syscall();
	])
])

AC_DEFUN([ZFS_AC_KERNEL_IN_COMPAT_SYSCALL], [
	AC_MSG_CHECKING([whether in_compat_syscall() is available])
	ZFS_LINUX_TEST_RESULT([in_compat_syscall], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_IN_COMPAT_SYSCALL, 1,
		    [in_compat_syscall() is available])
	],[
		AC_MSG_RESULT(no)
	])
])