aboutsummaryrefslogtreecommitdiffstats
path: root/config/kernel-user-ns-inum.m4
blob: 2207a4aa69218f759060a248312e5aa20225671b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
dnl #
dnl # 3.18 API change
dnl # struct user_namespace inum moved from .proc_inum to .ns.inum.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_USER_NS_COMMON_INUM], [
	ZFS_LINUX_TEST_SRC([user_ns_common_inum], [
		#include <linux/user_namespace.h>
	], [
		struct user_namespace uns;
		uns.ns.inum = 0;
	])
])

AC_DEFUN([ZFS_AC_KERNEL_USER_NS_COMMON_INUM], [
	AC_MSG_CHECKING([whether user_namespace->ns.inum exists])
	ZFS_LINUX_TEST_RESULT([user_ns_common_inum], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_USER_NS_COMMON_INUM, 1,
		    [user_namespace->ns.inum exists])
	],[
		AC_MSG_RESULT(no)
	])
])