From: walter Date: Wed, 7 May 2008 21:23:49 +0000 (+0000) Subject: b=14091 X-Git-Tag: v1_9_50~530 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d16b71dce22b02da76b52a9026ced71ca37cf857;p=fs%2Flustre-release.git b=14091 i=he.huang i=adilger fix for build errors on Cray catamount builds --- diff --git a/lnet/lnet/api-ni.c b/lnet/lnet/api-ni.c index 4fd9adb..8a86dcc 100644 --- a/lnet/lnet/api-ni.c +++ b/lnet/lnet/api-ni.c @@ -858,6 +858,7 @@ lnet_count_acceptor_nis (lnet_ni_t **first_ni) * *first_ni so the acceptor can pass it connections "blind" to retain * binary compatibility. */ int count = 0; +#if defined(__KERNEL__) || defined(HAVE_LIBPTHREAD) struct list_head *tmp; lnet_ni_t *ni; @@ -876,6 +877,8 @@ lnet_count_acceptor_nis (lnet_ni_t **first_ni) } LNET_UNLOCK(); + +#endif /* defined(__KERNEL__) || defined(HAVE_LIBPTHREAD) */ return count; }