blob: 0fcba6546ac10f21ddfaf0463e9c2616a6b350ae [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001From ede4ae8e25f9fb746a6f4e076d0ef029938d2880 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 28 Mar 2017 11:46:56 -0700
4Subject: [PATCH 4/4] Adjust for linux-kernel headers assumptions on glibc
5
6Fixes build issues e.g.
7
8In file included from /mnt/a/build/tmp-musl/work/cortexa7hf-neon-vfpv4-oe-linux-musleabi/openl2tp/1.8-r0/recipe-sysroot/usr/include/linux/if_pppox.h:24:
9/mnt/a/build/tmp-musl/work/cortexa7hf-neon-vfpv4-oe-linux-musleabi/openl2tp/1.8-r0/recipe-sysroot/usr/include/linux/if.h:97:2: error: expected identifier
10 IFF_LOWER_UP = 1<<16, /* __volatile__ */
11 ^
12
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 plugins/ppp_unix.c | 5 +++++
16 1 file changed, 5 insertions(+)
17
18diff --git a/plugins/ppp_unix.c b/plugins/ppp_unix.c
19index 869066f..5c1e44f 100644
20--- a/plugins/ppp_unix.c
21+++ b/plugins/ppp_unix.c
22@@ -21,6 +21,11 @@
23 * Plugin to use the standard UNIX pppd
24 */
25
26+/* hack to make sure kernel headers understand that libc (musl)
27+ * does define IFF_LOWER_UP et al.
28+ */
29+#define __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0
30+
31 #include <unistd.h>
32 #include <fcntl.h>
33 #include <sys/types.h>
34--
352.12.1
36