2 dnl # 4.9, current_time() added
3 dnl # 4.18, return type changed from timespec to timespec64
5 AC_DEFUN([ZFS_AC_KERNEL_CURRENT_TIME],
6 [AC_MSG_CHECKING([whether current_time() exists])
7 ZFS_LINUX_TRY_COMPILE_SYMBOL([
10 struct inode ip __attribute__ ((unused));
11 ip.i_atime = current_time(&ip);
12 ], [current_time], [fs/inode.c], [
14 AC_DEFINE(HAVE_CURRENT_TIME, 1, [current_time() exists])