xref: /freebsd/sys/contrib/openzfs/config/kernel-kuidgid.m4 (revision 2e3f49888ec8851bafb22011533217487764fdb0)
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