[openib-general] Compiling SDP on 2.6.9
Libor Michalek
libor at topspin.com
Thu Apr 28 16:33:05 PDT 2005
On Thu, Apr 28, 2005 at 03:47:21PM -0700, Grant Grundler wrote:
> On Thu, Apr 28, 2005 at 02:33:02PM -0700, Woodruff, Robert J wrote:
> >
> > Hi Libor,
> >
> > I was trying to backport SDP to a 2.6.9 kernel and ran into
> > a compile error when compiling sdp_conn.c and sdp_inet.c
> > They seem to have a reference to a
> > value of ECANCELLED.
> >
> > I did a search and found it was defined in asm-parisc/errno.h
> > but no where else.
> >
> > #define ECANCELLED 253
>
> > Is that the value you intended in these calls and if so, can I just
> > define it in somewhere like sdp_main.h for my backport version ?
>
> Please do not. Just fix the code to use ECANCELED since that's
> what SuSv3 specifies and linux prefers:
> include/asm-generic/errno.h:#define ECANCELED 125
In 2.6.9 the contant ECANCELED does not exists, it was only introduced
in 2.6.10, so for the patch Woody is trying to create I would just say
add the #define to sdp_main.h
-Libor
More information about the general
mailing list