]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - config/kernel-kstrtoul.m4
Vendor import of openzfs master @ 184df27eef0abdc7ab2105b21257f753834b936b
[FreeBSD/FreeBSD.git] / config / kernel-kstrtoul.m4
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         ])
11 ])
12
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         ])
21 ])