From 63361b67782490aebb353a43ca9344ae6b3e0a8b Mon Sep 17 00:00:00 2001 From: jxiong Date: Fri, 13 Jul 2007 10:17:20 +0000 Subject: [PATCH] LC_PAGE_CONSTANT won't work because struct page is not defined, fixed it --- lustre/autoconf/lustre-core.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 3d34d0f..11e1dcd 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1017,7 +1017,9 @@ AC_DEFUN([LC_PAGE_CONSTANT], LB_LINUX_TRY_COMPILE([ #include ],[ - PageConstant((struct page *)NULL); + #ifndef PG_constant + #error "Have no raid5 zcopy patch" + #endif ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_PAGE_CONSTANT, 1, [kernel have PageConstant supported]) -- 1.8.3.1