1dnl # 2dnl # 3.18 API change 3dnl # struct user_namespace inum moved from .proc_inum to .ns.inum. 4dnl # 5AC_DEFUN([ZFS_AC_KERNEL_SRC_USER_NS_COMMON_INUM], [ 6 ZFS_LINUX_TEST_SRC([user_ns_common_inum], [ 7 #include <linux/user_namespace.h> 8 ], [ 9 struct user_namespace uns; 10 uns.ns.inum = 0; 11 ]) 12]) 13 14AC_DEFUN([ZFS_AC_KERNEL_USER_NS_COMMON_INUM], [ 15 AC_MSG_CHECKING([whether user_namespace->ns.inum exists]) 16 ZFS_LINUX_TEST_RESULT([user_ns_common_inum], [ 17 AC_MSG_RESULT(yes) 18 AC_DEFINE(HAVE_USER_NS_COMMON_INUM, 1, 19 [user_namespace->ns.inum exists]) 20 ],[ 21 AC_MSG_RESULT(no) 22 ]) 23]) 24