]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-current-time.m4
Fix autoconf detection of super_setup_bdi_name
[FreeBSD/FreeBSD.git] / config / kernel-current-time.m4
1 dnl #
2 dnl # 4.9, current_time() added
3 dnl #
4 AC_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 ])