From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Khapyorsky Subject: Re: [PATCH] ib/mgmt: fix build under windows stack Date: Wed, 9 Jun 2010 09:48:00 +0300 Message-ID: <20100609064800.GA20172@me> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Hefty, Sean" Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-rdma@vger.kernel.org On 13:15 Wed 02 Jun , Hefty, Sean wrote: > Fix warnings in windows build. > > These are typecasts in several places, with a couple additional changes > needed to libibnetdisc. Windows uses ISO definitions instead of > POSIX definitions, so calls like _read, _write, etc. are used on > Windows instead of read, write. The result is that internal functions > are renamed with an ibnd prefix. > > In order to handle ibdebug exported from libibmad, Windows need to mark > the variable as a 'dllexport' from libibmad, but as 'dllimport' for users. > Since libibnetdisc wants to 'dllimport' ibdebug from libibmad, while > 'dllexporting its own functions, it requires a separate 'MAD_EXPORT' like > definition to allow this. > > Signed-off-by: Sean Hefty Applied. Thanks. Sasha -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html