From d16b71dce22b02da76b52a9026ced71ca37cf857 Mon Sep 17 00:00:00 2001 From: walter Date: Wed, 7 May 2008 21:23:49 +0000 Subject: [PATCH] b=14091 i=he.huang i=adilger fix for build errors on Cray catamount builds --- lnet/lnet/api-ni.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 1.8.3.1