2 dnl # 4.9, current_time() added
3 dnl # 4.18, return type changed from timespec to timespec64
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_CURRENT_TIME], [
6 ZFS_LINUX_TEST_SRC([current_time], [
9 struct inode ip __attribute__ ((unused));
10 ip.i_atime = current_time(&ip);
14 AC_DEFUN([ZFS_AC_KERNEL_CURRENT_TIME], [
15 AC_MSG_CHECKING([whether current_time() exists])
16 ZFS_LINUX_TEST_RESULT_SYMBOL([current_time],
17 [current_time], [fs/inode.c], [
19 AC_DEFINE(HAVE_CURRENT_TIME, 1, [current_time() exists])