]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-kstrtoul.m4
linux: implement filesystem-side copy/clone functions for EL7
[mirror_zfs.git] / config / kernel-kstrtoul.m4
CommitLineData
8708fd88
TK
1dnl #
2dnl # 2.6.39 API change
066e8252 3dnl # Added kstrtoul()
8708fd88 4dnl #
608f8749
BB
5AC_DEFUN([ZFS_AC_KERNEL_SRC_KSTRTOUL], [
6 ZFS_LINUX_TEST_SRC([kstrtoul], [
8708fd88
TK
7 #include <linux/kernel.h>
8 ],[
9 int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
608f8749
BB
10 ])
11])
12
13AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
14 AC_MSG_CHECKING([whether kstrtoul() exists])
15 ZFS_LINUX_TEST_RESULT([kstrtoul], [
8708fd88
TK
16 AC_MSG_RESULT(yes)
17 AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])
18 ],[
066e8252 19 ZFS_LINUX_TEST_ERROR([kstrtoul()])
8708fd88
TK
20 ])
21])