]> git.proxmox.com Git - mirror_zfs.git/blob - config/kernel-kstrtoul.m4
Wait in 'S' state when send/recv pipe is blocking
[mirror_zfs.git] / config / kernel-kstrtoul.m4
1 dnl #
2 dnl # 2.6.39 API change
3 dnl #
4 dnl # 33ee3b2e2eb9 kstrto*: converting strings to integers done (hopefully) right
5 dnl #
6 dnl # If kstrtoul() doesn't exist, fallback to use strict_strtoul() which has
7 dnl # existed since 2.6.25.
8 dnl #
9 AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
10 AC_MSG_CHECKING([whether kstrtoul() exists])
11 ZFS_LINUX_TRY_COMPILE([
12 #include <linux/kernel.h>
13 ],[
14 int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
15 ],[
16 AC_MSG_RESULT(yes)
17 AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])
18 ],[
19 AC_MSG_RESULT(no)
20 ])
21 ])