[Olsr-dev] [PATCH] plugins: fix build with musl

Daniel Golle (spam-protected)
Sat May 16 00:05:07 CEST 2015


On Fri, May 15, 2015 at 11:17:12PM +0200, Henning Rogge wrote:
> *facepalm* (about gnu and bsd)
> 
> What do you think about just defining our OWN "udp header struct" for
> the plugin?
> 
> The definition of it is neither POSIX, nor GNU, not BSD... its in an
> IETF RFC. Instead of guessing what the system include is doing, lets
> just ignore the whole thing.

Well, the RFC doesn't specify the names to be used in
a 'struct udphdr' in a certain programming language.

Anyway.
If you want to get rid of all ifdef'ery (which is desirable
imho) just make sure not to also call your in-source
definition 'struct udphdr' expecting that netinet/udp.h
wasn't indirectly included on some systems...


Cheers


Daniel




More information about the Olsr-dev mailing list