]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces: include "netinet/in.h" before kernel headers
authorVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 22:21:44 +0000 (23:21 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 22:50:07 +0000 (23:50 +0100)
This should ensure definition of stuff like in6_addr are done by the
libc, not by the kernel headers. Recent kernel headers know how to
handle that when loaded second.

src/daemon/interfaces-linux.c

index 56931bf60672bf8aa2aaef817d50517f7a9df5ba..c9e1647f9c9f0c02e37696cd4d57b2d6665d86c8 100644 (file)
@@ -26,6 +26,7 @@
 #pragma clang diagnostic push
 #pragma clang diagnostic ignored "-Wdocumentation"
 #endif
+#include <netinet/in.h>
 #include <linux/if_vlan.h>
 #include <linux/if_bonding.h>
 #include <linux/if_bridge.h>