]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-ktime_get_coarse_real_ts64.m4
Linux 5.0 compat: ASM_BUG macro
[mirror_zfs.git] / config / kernel-ktime_get_coarse_real_ts64.m4
1 dnl #
2 dnl # 4.18: ktime_get_coarse_real_ts64() added. Use it in place of
3 dnl # current_kernel_time64().
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64],
6 [AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists])
7 ZFS_LINUX_TRY_COMPILE([
8 #include <linux/mm.h>
9 ], [
10 struct timespec64 ts;
11 ktime_get_coarse_real_ts64(&ts);
12 ], [
13 AC_MSG_RESULT(yes)
14 AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64, 1, [ktime_get_coarse_real_ts64() exists])
15 ], [
16 AC_MSG_RESULT(no)
17 ])
18 ])