]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-current-time.m4
Append myself to Uploaders and refresh auto-generated control.
[mirror_zfs-debian.git] / config / kernel-current-time.m4
CommitLineData
22929307
AX
1dnl #
2dnl # 4.9, current_time() added
a07c8b41 3dnl # 4.18, return type changed from timespec to timespec64
22929307
AX
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 ], [
a07c8b41
MZ
10 struct inode ip __attribute__ ((unused));
11 ip.i_atime = current_time(&ip);
22929307
AX
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])