This should fix it. diff -Nru a/ip/xfrm.h b/ip/xfrm.h --- a/ip/xfrm.h 2004-10-20 16:40:09 -07:00 +++ b/ip/xfrm.h 2004-10-20 16:40:09 -07:00 @@ -28,7 +28,10 @@ #include <stdio.h> #include <sys/socket.h> #include <linux/xfrm.h> -#include "utils.h" + +#ifndef IPPROTO_SCTP +# define IPPROTO_SCTP 132 +#endif #define XFRM_MAX_DEPTH 6 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
While compiling the new release i´ll get this error: gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -g -I../include -DRESOLVE_HOSTNAMES -c -o ipxfrm.o ipxfrm.c ipxfrm.c: In function `xfrm_selector_print'': ipxfrm.c:395: error: `IPPROTO_SCTP'' undeclared (first use in this function) ipxfrm.c:395: error: (Each undeclared identifier is reported only once ipxfrm.c:395: error: for each function it appears in.) ipxfrm.c: In function `xfrm_selector_upspec_parse'': ipxfrm.c:790: error: `IPPROTO_SCTP'' undeclared (first use in this function) Any solutions? _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> This should fix it. > > diff -Nru a/ip/xfrm.h b/ip/xfrm.h > --- a/ip/xfrm.h 2004-10-20 16:40:09 -07:00 > +++ b/ip/xfrm.h 2004-10-20 16:40:09 -07:00 > @@ -28,7 +28,10 @@ > #include <stdio.h> > #include <sys/socket.h> > #include <linux/xfrm.h> > -#include "utils.h" > + > +#ifndef IPPROTO_SCTP > +# define IPPROTO_SCTP 132 > +#endif > > #define XFRM_MAX_DEPTH 6 >Thank´s but I´m not good at programming so I don´t really know what to do :(. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> This should fix it. > > diff -Nru a/ip/xfrm.h b/ip/xfrm.h > --- a/ip/xfrm.h 2004-10-20 16:40:09 -07:00 > +++ b/ip/xfrm.h 2004-10-20 16:40:09 -07:00 > @@ -28,7 +28,10 @@ > #include <stdio.h> > #include <sys/socket.h> > #include <linux/xfrm.h> > -#include "utils.h" > + > +#ifndef IPPROTO_SCTP > +# define IPPROTO_SCTP 132 > +#endif > > #define XFRM_MAX_DEPTH 6 >OK excuse me for being dumb ;), worked fine. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/