mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
5cb46f6a66
Newer kernels remove current_kernel_time64(). Use ktime_get_coarse_real_ts64() in its place. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #8258
19 lines
490 B
Plaintext
19 lines
490 B
Plaintext
dnl #
|
|
dnl # 4.18: ktime_get_coarse_real_ts64() added. Use it in place of
|
|
dnl # current_kernel_time64().
|
|
dnl #
|
|
AC_DEFUN([ZFS_AC_KERNEL_KTIME_GET_COARSE_REAL_TS64],
|
|
[AC_MSG_CHECKING([whether ktime_get_coarse_real_ts64() exists])
|
|
ZFS_LINUX_TRY_COMPILE([
|
|
#include <linux/mm.h>
|
|
], [
|
|
struct timespec64 ts;
|
|
ktime_get_coarse_real_ts64(&ts);
|
|
], [
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_KTIME_GET_COARSE_REAL_TS64, 1, [ktime_get_coarse_real_ts64() exists])
|
|
], [
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|