]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-kstrtoul.m4
Perform KABI checks in parallel
[mirror_zfs.git] / config / kernel-kstrtoul.m4
1 dnl #
2 dnl # 2.6.39 API change
3 dnl #
4 dnl # If kstrtoul() doesn't exist, fallback to use strict_strtoul() which has
5 dnl # existed since 2.6.25.
6 dnl #
7 AC_DEFUN([ZFS_AC_KERNEL_SRC_KSTRTOUL], [
8 ZFS_LINUX_TEST_SRC([kstrtoul], [
9 #include <linux/kernel.h>
10 ],[
11 int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
12 ])
13 ])
14
15 AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
16 AC_MSG_CHECKING([whether kstrtoul() exists])
17 ZFS_LINUX_TEST_RESULT([kstrtoul], [
18 AC_MSG_RESULT(yes)
19 AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])
20 ],[
21 AC_MSG_RESULT(no)
22 ])
23 ])