[Olsr-dev] [PATCH] plugins: fix build with musl
Fri May 15 23:02:59 CEST 2015
On Fri, May 15, 2015 at 10:50:24PM +0200, Henning Rogge wrote:
> this was A LOT of activity...
> is there a special reason why musl does not use the same headers as
> the other libraries?
The conflicting definitions seem to stem from *BSD vs. GNU systems.
glibc defines them both:
/* UDP header as specified by RFC 768, August 1980. */
u_int16_t uh_sport; /* source port */
u_int16_t uh_dport; /* destination port */
u_int16_t uh_ulen; /* udp length */
u_int16_t uh_sum; /* udp checksum */
Various libc's found in the wild define either or both definitions.
'uh_sport' is more intuitive than 'source' which could mean a lot
of things imho.
More information about the Olsr-dev