Tag 2.2.0-rc4
[zfs.git] / config / kernel-kstrtoul.m4
blob8e4b542978a94326500019209977cef69398cfb6
1 dnl #
2 dnl # 2.6.39 API change
3 dnl # Added kstrtoul()
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_KSTRTOUL], [
6         ZFS_LINUX_TEST_SRC([kstrtoul], [
7                 #include <linux/kernel.h>
8         ],[
9                 int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
10         ])
13 AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
14         AC_MSG_CHECKING([whether kstrtoul() exists])
15         ZFS_LINUX_TEST_RESULT([kstrtoul], [
16                 AC_MSG_RESULT(yes)
17                 AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])
18         ],[
19                 ZFS_LINUX_TEST_ERROR([kstrtoul()])
20         ])