]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-ktime_get_coarse_real_ts64.m4
Linux compat: Minimum kernel version 3.10
[FreeBSD/FreeBSD.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_SRC_KTIME_GET_COARSE_REAL_TS64], [
6         ZFS_LINUX_TEST_SRC([ktime_get_coarse_real_ts64], [
7                 #include <linux/mm.h>
8         ], [
9                 struct timespec64 ts;
10                 ktime_get_coarse_real_ts64(&ts);
11         ])
12 ])
13
14 AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64], [
15         AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists])
16         ZFS_LINUX_TEST_RESULT([ktime_get_coarse_real_ts64], [
17                 AC_MSG_RESULT(yes)
18                 AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64, 1,
19                     [ktime_get_coarse_real_ts64() exists])
20         ], [
21                 AC_MSG_RESULT(no)
22         ])
23 ])