]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-siginfo.m4
ztest: use ASSERT3P to compare pointers
[FreeBSD/FreeBSD.git] / config / kernel-siginfo.m4
1 dnl #
2 dnl # 4.20 API change
3 dnl # Added kernel_siginfo_t
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_SIGINFO], [
6         ZFS_LINUX_TEST_SRC([siginfo], [
7                 #include <linux/signal_types.h>
8         ],[
9                 kernel_siginfo_t info __attribute__ ((unused));
10         ])
11 ])
12
13 AC_DEFUN([ZFS_AC_KERNEL_SIGINFO], [
14         AC_MSG_CHECKING([whether kernel_siginfo_t tyepedef exists])
15         ZFS_LINUX_TEST_RESULT([siginfo], [
16                 AC_MSG_RESULT(yes)
17                 AC_DEFINE(HAVE_SIGINFO, 1, [kernel_siginfo_t exists])
18         ],[
19                 AC_MSG_RESULT(no)
20         ])
21 ])