From a27741493db0d824a51775e387cf3972a471f64e Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 24 Sep 2018 18:28:53 +0200 Subject: Add compatibility to support kvcalloc() --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 73a2f8c..2df76b2 100644 --- a/configure.ac +++ b/configure.ac @@ -383,6 +383,16 @@ else AC_SUBST(HAVE_RBTREE_POSTORDER_FOR_EACH_ENTRY_SAFE, undef) fi +AC_MSG_CHECKING([kernel source for kvcalloc]) +if test -f $ksourcedir/include/linux/mm.h && \ + $GREP -q 'kvcalloc' $ksourcedir/include/linux/mm.h; then + AC_MSG_RESULT(yes) + AC_SUBST(HAVE_KVCALLOC, define) +else + AC_MSG_RESULT(no) + AC_SUBST(HAVE_KVCALLOC, undef) +fi + AC_MSG_CHECKING([kernel source for kvfree]) if test -f $ksourcedir/include/linux/mm.h && \ $GREP -q 'kvfree' $ksourcedir/include/linux/mm.h; then -- cgit v1.2.3