Skip to contentSkip to conversation

dhcp.c: include net/ethernet.h before linux headers

PATCH New John 2 participants 3 messages May 17, 2018

lore
Share & tools
lore

John

author
#0 lore raw

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
index ad95850..6c90370 100644
@@ -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
#1 lore raw

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
index ad95850..6c90370 100644
@@ -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
#2 lore raw

Hi 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.h take care of that.

---
  ell/dhcp.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Regards,
-Denis