]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-current_bio_tail.m4
Don't assume pthread_t is uint_t for portability
[mirror_zfs.git] / config / kernel-current_bio_tail.m4
1 dnl #
2 dnl # 2.6.34 API change
3 dnl # current->bio_tail and current->bio_list were struct bio pointers prior to
4 dnl # Linux 2.6.34. They were refactored into a struct bio_list pointer called
5 dnl # current->bio_list in Linux 2.6.34.
6 dnl #
7 AC_DEFUN([ZFS_AC_KERNEL_CURRENT_BIO_TAIL], [
8 AC_MSG_CHECKING([whether current->bio_tail exists])
9 ZFS_LINUX_TRY_COMPILE([
10 #include <linux/sched.h>
11 ],[
12 current->bio_tail = (struct bio **) NULL;
13 ],[
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_CURRENT_BIO_TAIL, 1,
16 [current->bio_tail exists])
17 ],[
18 AC_MSG_RESULT(no)
19 AC_MSG_CHECKING([whether current->bio_list exists])
20 ZFS_LINUX_TRY_COMPILE([
21 #include <linux/sched.h>
22 ],[
23 current->bio_list = (struct bio_list *) NULL;
24 ],[
25 AC_MSG_RESULT(yes)
26 AC_DEFINE(HAVE_CURRENT_BIO_LIST, 1,
27 [current->bio_list exists])
28 ],[
29 AC_MSG_ERROR(no - Please file a bug report at
30 https://github.com/zfsonlinux/zfs/issues/new)
31 ])
32 ])
33 ])