Fix -Wuse-after-free warning in dbuf_destroy()
[zfs.git] / config / kernel-signal-stop.m4
blob6cb86e7c4cde42b55ea90342d8b4e1670890240e
1 dnl #
2 dnl # 4.4 API change
3 dnl # Added kernel_signal_stop
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_SIGNAL_STOP], [
6         ZFS_LINUX_TEST_SRC([signal_stop], [
7                 #include <linux/sched/signal.h>
8         ],[
9                 kernel_signal_stop();
10         ])
13 AC_DEFUN([ZFS_AC_KERNEL_SIGNAL_STOP], [
14         AC_MSG_CHECKING([whether signal_stop() exists])
15         ZFS_LINUX_TEST_RESULT([signal_stop], [
16                 AC_MSG_RESULT(yes)
17                 AC_DEFINE(HAVE_SIGNAL_STOP, 1, [signal_stop() exists])
18         ],[
19                 AC_MSG_RESULT(no)
20         ])