[LTP] [PATCH] sctp/sctp_big_chunk.c: Fix compiler error

Petr Vorel pvorel@suse.cz
Wed Apr 4 11:57:28 CEST 2018


> On old distros(e.g. RHEL5), Compilation failed because of redefinitions
> from linux/sctp.h(including linux/in.h) and netinet/in.h, as below:
> ----------------------------------------------------------------------
> In file included from /usr/include/linux/sctp.h:54,
>                  from ../../../include/lapi/sctp.h:22,
>                  from sctp_big_chunk.c:35:
> /usr/include/linux/in.h:26: error: redeclaration of enumerator ‘IPPROTO_IP’
> /usr/include/netinet/in.h:33: error: previous definition of ‘IPPROTO_IP’ was here
And obviously we need to find a way, how to check these old distros. IMHO it's not
feasible with travis, it'd be great to add another CI (docker based) to test these
distros.


Kind regards,
Petr


More information about the ltp mailing list