From: yangsheng Date: Wed, 3 Sep 2008 09:11:34 +0000 (+0000) Subject: Branch b1_6 X-Git-Tag: v1_7_110~2^4 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=21d652165c657fc31b3def271bf4f08cb611e0e6;p=fs%2Flustre-release.git Branch b1_6 b=16580 i=johann, shadow Fixed the build issue for sles9/ppc64. --- diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 6d0e18c..752bf9b 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -1150,6 +1150,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], @@ -1302,6 +1320,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