2018-02-07 22:50:24 +03:00
|
|
|
dnl #
|
|
|
|
dnl # 3.9 API change,
|
|
|
|
dnl # Moved things from linux/sched.h to linux/sched/rt.h
|
|
|
|
dnl #
|
2019-10-01 22:50:34 +03:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED_RT_HEADER], [
|
|
|
|
ZFS_LINUX_TEST_SRC([sched_rt_header], [
|
2018-02-07 22:50:24 +03:00
|
|
|
#include <linux/sched.h>
|
|
|
|
#include <linux/sched/rt.h>
|
|
|
|
],[
|
|
|
|
return 0;
|
2019-10-01 22:50:34 +03:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SCHED_RT_HEADER], [
|
|
|
|
AC_MSG_CHECKING([whether header linux/sched/rt.h exists])
|
|
|
|
ZFS_LINUX_TEST_RESULT([sched_rt_header], [
|
2018-02-07 22:50:24 +03:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
],[
|
2019-11-12 19:59:06 +03:00
|
|
|
ZFS_LINUX_TEST_ERROR([sched_rt_header])
|
2018-02-07 22:50:24 +03:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
dnl #
|
|
|
|
dnl # 4.11 API change,
|
|
|
|
dnl # Moved things from linux/sched.h to linux/sched/signal.h
|
|
|
|
dnl #
|
2019-10-01 22:50:34 +03:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED_SIGNAL_HEADER], [
|
|
|
|
ZFS_LINUX_TEST_SRC([sched_signal_header], [
|
2018-02-07 22:50:24 +03:00
|
|
|
#include <linux/sched.h>
|
|
|
|
#include <linux/sched/signal.h>
|
|
|
|
],[
|
|
|
|
return 0;
|
2019-10-01 22:50:34 +03:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SCHED_SIGNAL_HEADER], [
|
|
|
|
AC_MSG_CHECKING([whether header linux/sched/signal.h exists])
|
|
|
|
ZFS_LINUX_TEST_RESULT([sched_signal_header], [
|
|
|
|
AC_DEFINE(HAVE_SCHED_SIGNAL_HEADER, 1,
|
|
|
|
[linux/sched/signal.h exists])
|
2018-02-07 22:50:24 +03:00
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
],[
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
])
|
|
|
|
])
|
2019-10-01 22:50:34 +03:00
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_SCHED], [
|
|
|
|
ZFS_AC_KERNEL_SRC_SCHED_RT_HEADER
|
|
|
|
ZFS_AC_KERNEL_SRC_SCHED_SIGNAL_HEADER
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SCHED], [
|
|
|
|
ZFS_AC_KERNEL_SCHED_RT_HEADER
|
|
|
|
ZFS_AC_KERNEL_SCHED_SIGNAL_HEADER
|
|
|
|
])
|