zdb: remove strtok
[zfs.git] / config / kernel-totalhigh_pages.m4
blob4ecb03a50a51c87ef57f5acad25b05be0d57e3d2
1 dnl #
2 dnl # 5.0 API change
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_TOTALHIGH_PAGES], [
5         ZFS_LINUX_TEST_SRC([totalhigh_pages], [
6                 #include <linux/highmem.h>
7         ],[
8                 unsigned long pages __attribute__ ((unused));
9                 pages = totalhigh_pages();
10         ])
13 AC_DEFUN([ZFS_AC_KERNEL_TOTALHIGH_PAGES], [
14         AC_MSG_CHECKING([whether totalhigh_pages() exists])
15         ZFS_LINUX_TEST_RESULT([totalhigh_pages], [
16                 AC_MSG_RESULT(yes)
17                 AC_DEFINE(HAVE_TOTALHIGH_PAGES, 1, [totalhigh_pages() exists])
18         ],[
19                 AC_MSG_RESULT(no)
20         ])