]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-current-time.m4
Improve error message for zfs create with @ or # in name
[mirror_zfs.git] / config / kernel-current-time.m4
CommitLineData
2946a1a1
BB
1dnl #
2dnl # 4.9, current_time() added
6413c95f 3dnl # 4.18, return type changed from timespec to timespec64
2946a1a1
BB
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_CURRENT_TIME],
6 [AC_MSG_CHECKING([whether current_time() exists])
7 ZFS_LINUX_TRY_COMPILE_SYMBOL([
8 #include <linux/fs.h>
9 ], [
6413c95f
BB
10 struct inode ip __attribute__ ((unused));
11 ip.i_atime = current_time(&ip);
2946a1a1
BB
12 ], [current_time], [fs/inode.c], [
13 AC_MSG_RESULT(yes)
14 AC_DEFINE(HAVE_CURRENT_TIME, 1, [current_time() exists])
15 ], [
16 AC_MSG_RESULT(no)
17 ])
18])