[ofw] [PATCH 08/11] ucm: fix build problem with latest windows ucm changes

Davis, Arlin R arlin.r.davis at intel.com
Fri Oct 16 16:51:41 PDT 2009


define dapls_thread_signal as inline

Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 dapl/openib_ucm/linux/openib_osd.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dapl/openib_ucm/linux/openib_osd.h b/dapl/openib_ucm/linux/openib_osd.h
index cf40fc9..fe60aa0 100644
--- a/dapl/openib_ucm/linux/openib_osd.h
+++ b/dapl/openib_ucm/linux/openib_osd.h
@@ -11,6 +11,12 @@
 #define htonll(x)  bswap_64(x)
 #define ntohll(x)  bswap_64(x)
 #endif
+#ifndef STATIC
+#define STATIC static
+#endif /* STATIC */
+#ifndef _INLINE_
+#define _INLINE_ __inline__
+#endif /* _INLINE_ */
 
 #define DAPL_SOCKET int
 #define DAPL_INVALID_SOCKET -1
@@ -23,7 +29,7 @@ struct dapl_thread_signal
 	DAPL_SOCKET scm[2];
 };
 
-static void dapls_thread_signal(struct dapl_thread_signal *signal)
+STATIC _INLINE_ void dapls_thread_signal(struct dapl_thread_signal *signal)
 {
 	send(signal->scm[1], "w", sizeof "w", 0);
 }
-- 
1.5.2.5




More information about the ofw mailing list