]>
Commit | Line | Data |
---|---|---|
b5a28807 ED |
1 | dnl # |
2 | dnl # 2.6.37 API change | |
3 | dnl # Added 3rd argument for the active holder, previously this was | |
4 | dnl # hardcoded to NULL. | |
5 | dnl # | |
6 | AC_DEFUN([ZFS_AC_KERNEL_3ARG_BLKDEV_GET], [ | |
7 | AC_MSG_CHECKING([whether blkdev_get() wants 3 args]) | |
8 | ZFS_LINUX_TRY_COMPILE([ | |
9 | #include <linux/fs.h> | |
10 | ],[ | |
11 | struct block_device *bdev = NULL; | |
12 | (void) blkdev_get(bdev, 0, NULL); | |
13 | ],[ | |
14 | AC_MSG_RESULT(yes) | |
15 | AC_DEFINE(HAVE_3ARG_BLKDEV_GET, 1, [blkdev_get() wants 3 args]) | |
16 | ],[ | |
17 | AC_MSG_RESULT(no) | |
18 | ]) | |
19 | ]) |