Ubuntu 22.04 integration: Cppcheck
[zfs.git] / config / kernel-siginfo.m4
blob6ddb0dcc37d234a4ecda0f6ee38a84a05032c94d
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         ])
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         ])