]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-bio-bvec-iter.m4
Add kernel module auto-loading
[FreeBSD/FreeBSD.git] / config / kernel-bio-bvec-iter.m4
1 dnl #
2 dnl # 3.14 API change,
3 dnl # Immutable biovecs. A number of fields of struct bio are moved to
4 dnl # struct bvec_iter.
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_BIO_BVEC_ITER], [
7         AC_MSG_CHECKING([whether bio has bi_iter])
8         ZFS_LINUX_TRY_COMPILE([
9                 #include <linux/bio.h>
10         ],[
11                 struct bio bio;
12                 bio.bi_iter.bi_sector = 0;
13         ],[
14                 AC_MSG_RESULT(yes)
15                 AC_DEFINE(HAVE_BIO_BVEC_ITER, 1, [bio has bi_iter])
16         ],[
17                 AC_MSG_RESULT(no)
18         ])
19 ])
20