Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] pppd: Move netinet/in.h above linux header includes
@ 2016-10-20 21:12 stefan.nickl at gmail.com
  2016-10-20 21:23 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: stefan.nickl at gmail.com @ 2016-10-20 21:12 UTC (permalink / raw)
  To: buildroot

From: Stefan Nickl <Stefan.Nickl@gmail.com>

Linux uapi headers try to avoid redeclaring things from libc via
linux/libc-compat.h. However that only works if the libc header is
included first.

Signed-off-by: Stefan Nickl <Stefan.Nickl@gmail.com>

---
This looks better now regarding the uclibc breakage.

diff --git a/package/pppd/0001-Move-netinet-in.h-above-linux-header-includes.patch b/package/pppd/0001-Move-netinet-in.h-above-linux-header-includes.patch
new file mode 100644
index 0000000..2f6933f
--- /dev/null
+++ b/package/pppd/0001-Move-netinet-in.h-above-linux-header-includes.patch
@@ -0,0 +1,22 @@
+diff --git a/pppd/plugins/rp-pppoe/pppoe.h b/pppd/plugins/rp-pppoe/pppoe.h
+index 9ab2eee..b827620 100644
+--- a/pppd/plugins/rp-pppoe/pppoe.h
++++ b/pppd/plugins/rp-pppoe/pppoe.h
+@@ -47,6 +47,8 @@
+ #include <sys/socket.h>
+ #endif
+ 
++#include <netinet/in.h>
++
+ /* Ugly header files on some Linux boxes... */
+ #if defined(HAVE_LINUX_IF_H)
+ #include <linux/if.h>
+@@ -84,8 +86,6 @@ typedef unsigned long UINT32_t;
+ #include <linux/if_ether.h>
+ #endif
+ 
+-#include <netinet/in.h>
+-
+ #ifdef HAVE_NETINET_IF_ETHER_H
+ #include <sys/types.h>
+ 
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-20 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-20 21:12 [Buildroot] [PATCH] pppd: Move netinet/in.h above linux header includes stefan.nickl at gmail.com
2016-10-20 21:23 ` Thomas Petazzoni
     [not found]   ` <CAFOMc=TTG9Z4iO0m5K+-Sao=fsk45MayfqmfvqM2O60SrWXMXQ@mail.gmail.com>
2016-10-20 21:36     ` Thomas Petazzoni
2016-10-20 21:40   ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox