Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From ede4ae8e25f9fb746a6f4e076d0ef029938d2880 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 28 Mar 2017 11:46:56 -0700 |
| 4 | Subject: [PATCH 4/4] Adjust for linux-kernel headers assumptions on glibc |
| 5 | |
| 6 | Fixes build issues e.g. |
| 7 | |
| 8 | In 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 | |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | plugins/ppp_unix.c | 5 +++++ |
| 16 | 1 file changed, 5 insertions(+) |
| 17 | |
| 18 | diff --git a/plugins/ppp_unix.c b/plugins/ppp_unix.c |
| 19 | index 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 | -- |
| 35 | 2.12.1 |
| 36 | |