dhcp.c: include net/ethernet.h before linux headers
PATCH 1/1 dhcp.c: include net/ethernet.h before linux headers
to fix compilation on systems with MUSL libc since MUSL a few argp structs exists in MUSL libc headers and kernel headers. Including libc headers before lets libc_compat.h take care of that.
--- ell/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ell/dhcp.c +1 -1
@@ -25,9 +25,9 @@#endif #include <netinet/ip.h> +#include <net/ethernet.h> #include <linux/types.h> #include <linux/if_arp.h> -#include <net/ethernet.h> #include <errno.h> #include <time.h>
Signature · 1 line
2.17.0
PATCH 1/1 dhcp.c: include net/ethernet.h before linux headers
to fix compilation on systems with MUSL libc since MUSL a few argp structs exists in MUSL libc headers and kernel headers. Including libc headers before lets libc_compat.h take care of that.
--- ell/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ell/dhcp.c +1 -1
@@ -25,9 +25,9 @@#endif #include <netinet/ip.h> +#include <net/ethernet.h> #include <linux/types.h> #include <linux/if_arp.h> -#include <net/ethernet.h> #include <errno.h> #include <time.h>
Signature · 1 line
2.17.0
Denis Kenzior
AppliedHi John,
Quoted 7 lines · John Zimmermann
to fix compilation on systems with MUSL libc since MUSL a few argp structs exists in MUSL libc headers and kernel headers. Including libc headers before lets
libc_compat.htake care of that.--- ell/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Regards,
-Denis