]> git.proxmox.com Git - mirror_zfs-debian.git/blob - config/kernel-bio-rw-syncio.m4
2c80f5c0ea614222a5d4728e09444e343b6380c3
[mirror_zfs-debian.git] / config / kernel-bio-rw-syncio.m4
1 dnl #
2 dnl # 2.6.29 API change
3 dnl # BIO_RW_SYNC renamed to BIO_RW_SYNCIO
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_BIO_RW_SYNCIO], [
6 AC_MSG_CHECKING([whether BIO_RW_SYNCIO is defined])
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/bio.h>
9 ],[
10 int flags;
11 flags = BIO_RW_SYNCIO;
12 ],[
13 AC_MSG_RESULT(yes)
14 AC_DEFINE(HAVE_BIO_RW_SYNCIO, 1,
15 [BIO_RW_SYNCIO is defined])
16 ],[
17 AC_MSG_RESULT(no)
18 ])
19 ])