Fix O_APPEND for Linux 3.15 and older kernels
[zfs.git] / config / kernel-special-state.m4
blobaa60aabebc43622cc5d6d7ff7794fbe314b60c2f
1 dnl #
2 dnl # 4.17 API change
3 dnl # Added set_special_state() function
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_SET_SPECIAL_STATE], [
6         ZFS_LINUX_TEST_SRC([set_special_state], [
7                 #include <linux/sched.h>
8         ],[
9                 set_special_state(TASK_STOPPED);
10         ])
13 AC_DEFUN([ZFS_AC_KERNEL_SET_SPECIAL_STATE], [
14         AC_MSG_CHECKING([whether set_special_state() exists])
15         ZFS_LINUX_TEST_RESULT([set_special_state], [
16                 AC_MSG_RESULT(yes)
17                 AC_DEFINE(HAVE_SET_SPECIAL_STATE, 1, [set_special_state() exists])
18         ],[
19                 AC_MSG_RESULT(no)
20         ])