[PATCH]Remove unneeded header inclusion
nicolas.carrier.ext at parrot.com
Thu Apr 12 08:55:00 EDT 2012
When using libnl, one can't include both netlink/route/link.h and net/if.h because it leads to structure redefinitions :
/usr/include/linux/if.h:137:8: error: redefinition of 'struct ifmap'
/usr/include/net/if.h:112:8: note: originally defined here
The attached patch removes the unneeded linux/if.h inclusion from netlink/route/link.h and fixed the problem for me.
It should apply to the current master's HEAD.
Note that I'm no libnl specialist and hence not sure this is the right way to achieve it...
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 661 bytes
Desc: not available
More information about the libnl