Whamcloud - gitweb
b=21041
authorbrian <brian>
Wed, 25 Nov 2009 19:59:38 +0000 (19:59 +0000)
committerbrian <brian>
Wed, 25 Nov 2009 19:59:38 +0000 (19:59 +0000)
i=dmitry.zogin
i=johann

On RHEL5 at least, the sg_set_page autoconf macro needs the addition of <asm/types.h> in order to properly work.

lnet/autoconf/lustre-lnet.m4

index 1c8d2ff..6297224 100644 (file)
@@ -1394,6 +1394,7 @@ LB_LINUX_TRY_COMPILE([
 AC_DEFUN([LN_SCATTERLIST_SETPAGE],
 [AC_MSG_CHECKING([for exist sg_set_page])
 LB_LINUX_TRY_COMPILE([
+        #include <asm/types.h>
         #include <linux/scatterlist.h>
 ],[
        sg_set_page(NULL,NULL,0,0);