package/connman: fix compilation error for kernels >= 4.15
PATCH 1/1 package/connman: fix compilation error for kernels >= 4.15
Include the upstream fix 0001-tethering-Reorder-header-includes.patch
Fixes
http://autobuild.buildroot.net/results/90005b436e25495a1113966112785278dfc0420a
http://autobuild.buildroot.net/results/ab713048093746576734e90290b8777222d70e7e
http://autobuild.buildroot.net/results/368c2c8ab9b8db7f445a9681082ce1e10c7e0151
http://autobuild.buildroot.net/results/1c98fd9ce430463e720212ce8a3698e2b72cbe7d
http://autobuild.buildroot.net/results/bc865093e6ffec4737433c5a213c0241495e9ccc
http://autobuild.buildroot.net/results/e4d93b136ef8aff600264d743191bf087044c27a
http://autobuild.buildroot.net/results/a2feeeed4d0d11fda5f029f8c784ed6ce16ee856
--- .../0001-tethering-Reorder-header-includes.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 package/connman/0001-tethering-Reorder-header-includes.patch
package/connman/0001-tethering-Reorder-header-includes.patch new file +37 -0
@@ -0,0 +1,37 @@ +From bdfb3526466f8fb8f13d9259037d8f42c782ce24 Mon Sep 17 00:00:00 2001 +From: Daniel Wagner <[email protected]> +Date: Wed, 17 Jan 2018 23:42:50 +0100 +Subject: [PATCH] tethering: Reorder header includes + +Avoid compile errors due to unsupported header include order with +newer kernels (>=4.15). We should import the libc header files first +and then the Linux header files in user space applications. + +Reported by Neil MacLeod <[email protected]>. Fix probosal by Jonas +Bonn <[email protected]> and Hauke Mehrtens <[email protected]>. + +Signed-off-by: Martin Bark <[email protected]> +--- + src/tethering.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/tethering.c b/src/tethering.c +index c929ba7..4b20236 100644 +--- a/src/tethering.c ++++ b/src/tethering.c +@@ -31,11 +31,11 @@ + #include <stdio.h> + #include <sys/ioctl.h> + #include <net/if.h> +-#include <linux/sockios.h> + #include <string.h> + #include <fcntl.h> +-#include <linux/if_tun.h> + #include <netinet/in.h> ++#include <linux/sockios.h> ++#include <linux/if_tun.h> + #include <linux/if_bridge.h> + + #include "connman.h" +-- +2.7.4
Signature · 1 line
2.7.4
PATCH 1/1 package/connman: fix compilation error for kernels >= 4.15
Quoted 12 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Include the upstream fix 0001-tethering-Reorder-header-includes.patch Fixes
http://autobuild.buildroot.net/results/90005b436e25495a1113966112785278dfc0420a
http://autobuild.buildroot.net/results/ab713048093746576734e90290b8777222d70e7e
http://autobuild.buildroot.net/results/368c2c8ab9b8db7f445a9681082ce1e10c7e0151
http://autobuild.buildroot.net/results/1c98fd9ce430463e720212ce8a3698e2b72cbe7d
http://autobuild.buildroot.net/results/bc865093e6ffec4737433c5a213c0241495e9ccc
http://autobuild.buildroot.net/results/e4d93b136ef8aff600264d743191bf087044c27a
http://autobuild.buildroot.net/results/a2feeeed4d0d11fda5f029f8c784ed6ce16ee856
Quoted 1 line
Signed-off-by Martin Bark <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard