2 dnl # 2.6.39 API change
4 dnl # 33ee3b2e2eb9 kstrto*: converting strings to integers done (hopefully) right
6 dnl # If kstrtoul() doesn't exist, fallback to use strict_strtoul() which has
7 dnl # existed since 2.6.25.
9 AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
10 AC_MSG_CHECKING([whether kstrtoul() exists])
11 ZFS_LINUX_TRY_COMPILE([
12 #include <linux/kernel.h>
14 int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
17 AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])