[ofw] [PATCH 2/2] contain pthreads defs with ifdef  HAVE_LIBPTHREAD
    Stan C. Smith 
    stan.smith at intel.com
       
    Wed Nov  4 12:58:33 PST 2009
    
    
  
Contain pthread defs with HAVE_LIBPTHREAD
Signed-off-by: stan smith <stan.smith at intel.com>
diff --git a/opensm/libvendor/osm_vendor_ibumad.c b/opensm/libvendor/osm_vendor_ibumad.c
index 0f5a7ae..6cafc00 100644
--- a/opensm/libvendor/osm_vendor_ibumad.c
+++ b/opensm/libvendor/osm_vendor_ibumad.c
@@ -90,7 +90,11 @@ typedef struct _osm_umad_bind_info {
 } osm_umad_bind_info_t;
 
 typedef struct _umad_receiver {
+#ifdef HAVE_LIBPTHREAD
 	pthread_t tid;
+#else
+	cl_thread_t tid;
+#endif
 	osm_vendor_t *p_vend;
 	osm_log_t *p_log;
 } umad_receiver_t;
    
    
More information about the ofw
mailing list