summaryrefslogtreecommitdiffstats
path: root/config/kernel-get-gendisk.m4
blob: 8cd725f0e0b32d86d7004c88859651833c4073a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
dnl #
dnl # 2.6.34 API change
dnl # Verify the get_gendisk() symbol is exported.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_GET_GENDISK], [
	ZFS_CHECK_SYMBOL_EXPORT(
		[get_gendisk],
		[block/genhd.c],
		[AC_DEFINE(HAVE_GET_GENDISK, 1, [get_gendisk() is available])],
		[])
])