[openib-general] [PATCH] osm: 'chmod' on Windows

Sasha Khapyorsky sashak at voltaire.com
Mon Nov 27 05:11:21 PST 2006


On 09:38 Mon 27 Nov     , Michael S. Tsirkin wrote:
> > > BTW, I can count 19 another occurrences of '#ifdef WIN32' and
> > > '#ifdef __WIN__' under management/osm tree. I guess that not each one
> > > can be so trivially cleaned up as in this case, but would it be
> > > possible to review it and reduce number of such #ifdef(s) in common
> > > code?
> >  
> > Good idea.
> > Thanks.
> 
> And in fact, most portability hacks in include/complib can be done this way

AFAIK OpenSM on windows has different complib implementation, so
portability hacks should be even simpler.

> if
> you want to do that: e.g. cl_ntoh32 can be converted to htonl, and you can have
> htonl defined in a windows-specific header.

Interesting what should be standard equivalent to cl_hton64()?

Sasha




More information about the general mailing list