2 dnl # 2.6.34 API change
3 dnl # Verify the get_gendisk() symbol is available.
5 AC_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>
11 ], [get_gendisk], [block/genhd.c], [
13 AC_DEFINE(HAVE_GET_GENDISK, 1, [get_gendisk() is available])