]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-fmode-t.m4
FreeBSD: Add zfs_link_create() error handling
[mirror_zfs.git] / config / kernel-fmode-t.m4
1 dnl #
2 dnl # 2.6.28 API change,
3 dnl # check if fmode_t typedef is defined
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_FMODE_T], [
6 ZFS_LINUX_TEST_SRC([type_fmode_t], [
7 #include <linux/types.h>
8 ],[
9 fmode_t *ptr __attribute__ ((unused));
10 ])
11 ])
12
13 AC_DEFUN([ZFS_AC_KERNEL_FMODE_T], [
14 AC_MSG_CHECKING([whether kernel defines fmode_t])
15 ZFS_LINUX_TEST_RESULT([type_fmode_t], [
16 AC_MSG_RESULT([yes])
17 ],[
18 ZFS_LINUX_TEST_ERROR([type_fmode_t])
19 ])
20 ])