diff mbox

[1/2] contain pthreads defs with ifdef HAVE_LIBPTHREAD

Message ID F9EFFFF3BD1D442AB6AA993FD6F0B5D8@amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Smith, Stan Nov. 4, 2009, 8:58 p.m. UTC
None
diff mbox

Patch

diff --git a/opensm/include/vendor/osm_vendor_ibumad.h b/opensm/include/vendor/osm_vendor_ibumad.h
index 0a4692d..d523412 100644
--- a/opensm/include/vendor/osm_vendor_ibumad.h
+++ b/opensm/include/vendor/osm_vendor_ibumad.h
@@ -160,8 +160,13 @@  typedef struct _osm_vendor {
 	char ca_names[OSM_UMAD_MAX_CAS][UMAD_CA_NAME_LEN];
 	vendor_match_tbl_t mtbl;
 	umad_port_t umad_port;
+#ifdef HAVE_LIBPTHREAD
 	pthread_mutex_t cb_mutex;
 	pthread_mutex_t match_tbl_mutex;
+#else
+	cl_mutex_t cb_mutex;
+	cl_mutex_t match_tbl_mutex;
+#endif
 	int umad_port_id;
 	void *receiver;
 	int issmfd;