3f251aa5b9
... while keeping compatibility with older ones. Fixes autobuild failure: http://autobuild.buildroot.org/results/f99ae7af46c70f7c356b7771321511a42eb3694d/ Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
20 lines
658 B
Diff
20 lines
658 B
Diff
tethering: fix build with kernel headers 3.8+
|
|
|
|
Highly inspired by:
|
|
package/bridge-utils/bridge-utils-001-fix-for-kernel-headers-3.8+.patch
|
|
http://www.redhat.com/archives/libvir-list/2013-January/msg01253.html
|
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
|
|
|
diff -durN connman-1.11.orig/src/tethering.c connman-1.11/src/tethering.c
|
|
--- connman-1.11.orig/src/tethering.c 2012-12-22 22:52:47.000000000 +0100
|
|
+++ connman-1.11/src/tethering.c 2013-03-21 19:39:17.036029270 +0100
|
|
@@ -35,6 +35,7 @@
|
|
#include <string.h>
|
|
#include <fcntl.h>
|
|
#include <linux/if_tun.h>
|
|
+#include <netinet/in.h>
|
|
#include <linux/if_bridge.h>
|
|
|
|
#include "connman.h"
|