]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-current-time.m4
Fix zdb -c traverse stop on damaged objset root
[mirror_zfs.git] / config / kernel-current-time.m4
CommitLineData
2946a1a1
BB
1dnl #
2dnl # 4.9, current_time() added
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_CURRENT_TIME],
5 [AC_MSG_CHECKING([whether current_time() exists])
6 ZFS_LINUX_TRY_COMPILE_SYMBOL([
7 #include <linux/fs.h>
8 ], [
9 struct inode ip;
10 struct timespec now __attribute__ ((unused));
11
12 now = current_time(&ip);
13 ], [current_time], [fs/inode.c], [
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_CURRENT_TIME, 1, [current_time() exists])
16 ], [
17 AC_MSG_RESULT(no)
18 ])
19])