From 6a392dfd791c148449673b31d2db412a77d3fc4d Mon Sep 17 00:00:00 2001 From: Armin Kuster Date: Sun, 25 Feb 2018 13:28:48 -0800 Subject: openl2tp: fix compile issue with 4.15 kernel see: http://errors.yoctoproject.org/Errors/Details/168101/ for errors. Signed-off-by: Armin Kuster Signed-off-by: Joe MacDonald --- .../openl2tp/openl2tp/fix_linux_4.15_compile.patch | 44 ++++++++++++++++++++++ .../recipes-protocols/openl2tp/openl2tp_1.8.bb | 1 + 2 files changed, 45 insertions(+) create mode 100644 meta-networking/recipes-protocols/openl2tp/openl2tp/fix_linux_4.15_compile.patch (limited to 'meta-networking/recipes-protocols') diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp/fix_linux_4.15_compile.patch b/meta-networking/recipes-protocols/openl2tp/openl2tp/fix_linux_4.15_compile.patch new file mode 100644 index 0000000000..4597df80a8 --- /dev/null +++ b/meta-networking/recipes-protocols/openl2tp/openl2tp/fix_linux_4.15_compile.patch @@ -0,0 +1,44 @@ +This fixes a compile issue introduced with linux kernel 4.15 + +include/linux/in.h:222:8: error: redefinition of 'struct in_pktinfo' +| struct in_pktinfo { + + +Upstream-Status: Pending +Signed-off-by: Armin Kuster + +Index: openl2tp-1.8/plugins/ppp_unix.c +=================================================================== +--- openl2tp-1.8.orig/plugins/ppp_unix.c ++++ openl2tp-1.8/plugins/ppp_unix.c +@@ -25,9 +25,14 @@ + #include + #include + #include ++#include ++ ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) + #include + #include + #include ++#endif ++ + #include + #include + #include +@@ -41,12 +46,12 @@ + #define __user + #endif + #include +-#include +-#include + #include + #include ++#include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 15, 0) + #include +- ++#endif + #include "usl.h" + #include "l2tp_private.h" + diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb index bf6850b17c..1f6b4ded32 100644 --- a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb +++ b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb @@ -33,6 +33,7 @@ SRC_URI = "ftp://ftp.openl2tp.org/releases/${BP}/${BP}.tar.gz \ file://openl2tpd.service \ file://openl2tpd-enable-tests.patch \ file://run-ptest \ + file://fix_linux_4.15_compile.patch \ " SRC_URI_append_libc-musl = "\ -- cgit v1.2.3-54-g00ecf