From 15bd1653cb00997ff9b5ed792f901298e57eb240 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Wed, 3 Sep 2008 09:18:06 +0000 Subject: [PATCH] Branch b1_8_gate b=16580 i=johann, shadow Fix build issue for sles9/ppc64. --- lnet/autoconf/lustre-lnet.m4 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 5605098..3003fb6 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -1170,6 +1170,24 @@ CFLAGS="$tmp_flags" ]) +# check kernel __le16, __le32 types +AC_DEFUN([LN_LE_TYPES], +[AC_MSG_CHECKING([__le16 and __le32 types are defined]) +LB_LINUX_TRY_COMPILE([ + #include +],[ + __le16 a; + __le32 b; +],[ + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_LE_TYPES, 1, + [__le16 and __le32 types are defined]) +],[ + AC_MSG_RESULT([no]) +]) +]) + + # LN_TASKLIST_LOCK # 2.6.18 remove tasklist_lock export AC_DEFUN([LN_TASKLIST_LOCK], @@ -1322,6 +1340,7 @@ LN_FUNC_SHOW_TASK LN_U64_LONG_LONG LN_SSIZE_T_LONG LN_SIZE_T_LONG +LN_LE_TYPES # 2.6.18 LN_TASKLIST_LOCK # 2.6.19 -- 1.8.3.1