From patchwork Wed Nov 4 20:58:33 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Smith, Stan" X-Patchwork-Id: 57772 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA4KwItM003334 for ; Wed, 4 Nov 2009 20:58:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932330AbZKDU63 (ORCPT ); Wed, 4 Nov 2009 15:58:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932347AbZKDU63 (ORCPT ); Wed, 4 Nov 2009 15:58:29 -0500 Received: from mga01.intel.com ([192.55.52.88]:34196 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932330AbZKDU62 (ORCPT ); Wed, 4 Nov 2009 15:58:28 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 04 Nov 2009 12:54:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.44,682,1249282800"; d="scan'208";a="510774088" Received: from scsmith-mobl1.amr.corp.intel.com (HELO scsmithMOBL1) ([10.7.151.219]) by fmsmga002.fm.intel.com with ESMTP; 04 Nov 2009 12:52:39 -0800 From: "Stan C. Smith" To: "'Sasha Khapyorsky'" Cc: , Subject: [PATCH 2/2] contain pthreads defs with ifdef HAVE_LIBPTHREAD Date: Wed, 4 Nov 2009 12:58:33 -0800 Message-ID: <5C9312DA0BBF40CCBD2AA7437CECC6AE@amr.corp.intel.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcpdkZIvxkrRqy0PR5Sjk6fbRrvCDw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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;