diff options
Diffstat (limited to 'config/kernel-get-gendisk.m4')
-rw-r--r-- | config/kernel-get-gendisk.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/kernel-get-gendisk.m4 b/config/kernel-get-gendisk.m4 new file mode 100644 index 000000000..8cd725f0e --- /dev/null +++ b/config/kernel-get-gendisk.m4 @@ -0,0 +1,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])], + []) +]) |