Fix "file is executable, but no shebang" warnings
[zfs.git] / config / kernel-current-time.m4
blob2ede9ff38c4165a1c8d1708ac61878e9ae701af3
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));
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         ])