Fix O_APPEND for Linux 3.15 and older kernels
[zfs.git] / config / kernel-group-info.m4
blob6941d62da0172a5d11d7b6544ecec944744174b2
1 dnl #
2 dnl # 4.9 API change
3 dnl # group_info changed from 2d array via >blocks to 1d array via ->gid
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_GROUP_INFO_GID], [
6         ZFS_LINUX_TEST_SRC([group_info_gid], [
7                 #include <linux/cred.h>
8         ],[
9                 struct group_info gi __attribute__ ((unused)) = {};
10                 gi.gid[0] = KGIDT_INIT(0);
11         ])
14 AC_DEFUN([ZFS_AC_KERNEL_GROUP_INFO_GID], [
15         AC_MSG_CHECKING([whether group_info->gid exists])
16         ZFS_LINUX_TEST_RESULT([group_info_gid], [
17                 AC_MSG_RESULT(yes)
18                 AC_DEFINE(HAVE_GROUP_INFO_GID, 1, [group_info->gid exists])
19         ],[
20                 AC_MSG_RESULT(no)
21         ])