Linux 3.5 compat, iops->truncate_range() removed
[zfs.git] / config / kernel-get-gendisk.m4
1 dnl #
2 dnl # 2.6.34 API change
3 dnl # Verify the get_gendisk() symbol is exported.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_GET_GENDISK], [
6         ZFS_CHECK_SYMBOL_EXPORT(
7                 [get_gendisk],
8                 [block/genhd.c],
9                 [AC_DEFINE(HAVE_GET_GENDISK, 1, [get_gendisk() is available])],
10                 [])
11 ])