]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-kobj-name-len.m4
Linux 3.1 compat, fops->fsync()
[mirror_zfs-debian.git] / config / kernel-kobj-name-len.m4
CommitLineData
c9c0d073
BB
1dnl #
2dnl # 2.6.27 API change,
3dnl # kobject KOBJ_NAME_LEN static limit removed. All users of this
4dnl # constant were removed prior to 2.6.27, but to be on the safe
5dnl # side this check ensures the constant is undefined.
6dnl #
7AC_DEFUN([ZFS_AC_KERNEL_KOBJ_NAME_LEN], [
8 AC_MSG_CHECKING([whether kernel defines KOBJ_NAME_LEN])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/kobject.h>
11 ],[
79713039 12 int val __attribute__ ((unused));
c9c0d073
BB
13 val = KOBJ_NAME_LEN;
14 ],[
15 AC_MSG_RESULT([yes])
16 AC_DEFINE(HAVE_KOBJ_NAME_LEN, 1,
17 [kernel defines KOBJ_NAME_LEN])
18 ],[
19 AC_MSG_RESULT([no])
20 ])
21])