aboutsummaryrefslogblamecommitdiff
path: root/config/kernel-kstrtoul.m4
blob: 8e4b542978a94326500019209977cef69398cfb6 (plain) (tree)




















                                                                            
dnl #
dnl # 2.6.39 API change
dnl # Added kstrtoul()
dnl #
AC_DEFUN([ZFS_AC_KERNEL_SRC_KSTRTOUL], [
	ZFS_LINUX_TEST_SRC([kstrtoul], [
		#include <linux/kernel.h>
	],[
		int ret __attribute__ ((unused)) = kstrtoul(NULL, 10, NULL);
	])
])

AC_DEFUN([ZFS_AC_KERNEL_KSTRTOUL], [
	AC_MSG_CHECKING([whether kstrtoul() exists])
	ZFS_LINUX_TEST_RESULT([kstrtoul], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_KSTRTOUL, 1, [kstrtoul() exists])
	],[
		ZFS_LINUX_TEST_ERROR([kstrtoul()])
	])
])