xref: /freebsd/sys/contrib/openzfs/config/kernel-kuidgid.m4 (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1dnl #
2dnl # 3.8 API change,
3dnl # User namespaces, use kuid_t in place of uid_t where available.
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_SRC_KUIDGID_T], [
6	ZFS_LINUX_TEST_SRC([kuidgid_t], [
7		#include <linux/uidgid.h>
8	], [
9		kuid_t userid __attribute__ ((unused)) = KUIDT_INIT(0);
10		kgid_t groupid __attribute__ ((unused)) = KGIDT_INIT(0);
11	])
12])
13
14AC_DEFUN([ZFS_AC_KERNEL_KUIDGID_T], [
15	AC_MSG_CHECKING([whether kuid_t/kgid_t is available])
16	ZFS_LINUX_TEST_RESULT([kuidgid_t], [
17		AC_MSG_RESULT(yes)
18	],[
19		ZFS_LINUX_TEST_ERROR([kuid_t/kgid_t])
20	])
21])
22