]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - zfs/config/kernel-get-gendisk.m4
UBUNTU: SAUCE: (noup) Update spl to 0.6.5.9-1, zfs to 0.6.5.9-2
[mirror_ubuntu-artful-kernel.git] / zfs / config / kernel-get-gendisk.m4
CommitLineData
87d546d8
TG
1dnl #
2dnl # 2.6.34 API change
3dnl # Verify the get_gendisk() symbol is available.
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_GET_GENDISK],
6 [AC_MSG_CHECKING([whether get_gendisk() is available])
7 ZFS_LINUX_TRY_COMPILE_SYMBOL([
8 #include <linux/genhd.h>
9 ], [
10 get_gendisk(0, NULL);
11 ], [get_gendisk], [block/genhd.c], [
12 AC_MSG_RESULT(yes)
13 AC_DEFINE(HAVE_GET_GENDISK, 1, [get_gendisk() is available])
14 ], [
15 AC_MSG_RESULT(no)
16 ])
17])