]> git.proxmox.com Git - mirror_zfs-debian.git/blob - config/kernel-fmode-t.m4
New upstream version 0.7.11
[mirror_zfs-debian.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_TYPE_FMODE_T],
6 [AC_MSG_CHECKING([whether kernel defines fmode_t])
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/types.h>
9 ],[
10 fmode_t *ptr __attribute__ ((unused));
11 ],[
12 AC_MSG_RESULT([yes])
13 AC_DEFINE(HAVE_FMODE_T, 1,
14 [kernel defines fmode_t])
15 ],[
16 AC_MSG_RESULT([no])
17 ])
18 ])