Re: [PATCH conntrack-tools] src: fix build with musl libc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 23, 2015 at 02:59:49AM -0200, Rodrigo Rebello wrote:
> The GNU version of 'struct tcphdr' is not exposed by musl libc headers
> unless _GNU_SOURCE is defined. Without this definition, the build fails
> with:
> 
>   rpc.c: In function 'rpc_helper_cb':
>   rpc.c:351:15: error: 'struct tcphdr' has no member named 'doff'
>      offset += th->doff * 4;
>                  ^

You can probably update the code to use the non-GNU version, that
should work both with musl, libc and any other new version that
sticks to the standard.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux