2 dnl # 2.6.39 API change
4 dnl # If kstrtoul() doesn't exist, fallback to use strict_strtoul() which has
5 dnl # existed since 2.6.25.
7 AC_DEFUN([ZFS_AC_KERNEL_SRC_KSTRTOUL], [
8 ZFS_LINUX_TEST_SRC([kstrtoul], [
9 #include <linux/kernel.h>
11 int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
15 AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
16 AC_MSG_CHECKING([whether kstrtoul() exists])
17 ZFS_LINUX_TEST_RESULT([kstrtoul], [
19 AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])