3 dnl # User namespaces, use kuid_t in place of uid_t where available.
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_KUIDGID_T], [
6 ZFS_LINUX_TEST_SRC([kuidgid_t], [
7 #include <linux/uidgid.h>
9 kuid_t userid __attribute__ ((unused)) = KUIDT_INIT(0);
10 kgid_t groupid __attribute__ ((unused)) = KGIDT_INIT(0);
14 AC_DEFUN([ZFS_AC_KERNEL_KUIDGID_T], [
15 AC_MSG_CHECKING([whether kuid_t/kgid_t is available])
16 ZFS_LINUX_TEST_RESULT([kuidgid_t], [
19 ZFS_LINUX_TEST_ERROR([kuid_t/kgid_t])