]>
Commit | Line | Data |
---|---|---|
1 | dnl # | |
2 | dnl # 4.9, current_time() added | |
3 | dnl # 4.18, return type changed from timespec to timespec64 | |
4 | dnl # | |
5 | AC_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 | ], [ | |
10 | struct inode ip __attribute__ ((unused)); | |
11 | ip.i_atime = current_time(&ip); | |
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 | ]) |