freebsd: Use compiler.h from FreeBSD's base's linuxkpi
[zfs.git] / config / kernel-sched.m4
blob8ef4cc6ee4ccebc1eaf981ff70f42ab43b8d8053
1 dnl #
2 dnl # 3.9 API change,
3 dnl # Moved things from linux/sched.h to linux/sched/rt.h
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED_RT_HEADER], [
6         ZFS_LINUX_TEST_SRC([sched_rt_header], [
7                 #include <linux/sched.h>
8                 #include <linux/sched/rt.h>
9         ],[
10                 return 0;
11         ])
14 AC_DEFUN([ZFS_AC_KERNEL_SCHED_RT_HEADER], [
15         AC_MSG_CHECKING([whether header linux/sched/rt.h exists])
16         ZFS_LINUX_TEST_RESULT([sched_rt_header], [
17                 AC_MSG_RESULT(yes)
18         ],[
19                 ZFS_LINUX_TEST_ERROR([sched_rt_header])
20         ])
23 AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED], [
24         ZFS_AC_KERNEL_SRC_SCHED_RT_HEADER
27 AC_DEFUN([ZFS_AC_KERNEL_SCHED], [
28         ZFS_AC_KERNEL_SCHED_RT_HEADER