summaryrefslogtreecommitdiff
path: root/src/tethering.c
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-03-22 18:09:03 +0100
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-03-25 14:11:51 +0200
commit9fa8782303d9a16816cf1c7033c7883f203ac8eb (patch)
tree8457aede0545f6a9012f526df049ab48871ee6aa /src/tethering.c
parent3f2173fea50642d1ccaa9539dee16f6dfacef75b (diff)
downloadconnman-9fa8782303d9a16816cf1c7033c7883f203ac8eb.tar.gz
connman-9fa8782303d9a16816cf1c7033c7883f203ac8eb.tar.bz2
connman-9fa8782303d9a16816cf1c7033c7883f203ac8eb.zip
tethering: Fix build with kernel headers 3.8+
Highly inspired by: https://git.kernel.org/cgit/linux/kernel/git/shemminger/bridge-utils.git/commit/?id=5eebb7f9288b7881ffb929b1fd494fe3ac3be27d As Russel puts it in his commit message for bridge-utils: Linux 3.8 has a header, include/uapi/linux/if_bridge.h that uses a struct in6_addr but doesn't define it. The trivial seeming fix of including the header that does define it causes more problems. The problem was discussed on mailing lists in January 2013. The final suggestion I found was here: http://www.redhat.com/archives/libvir-list/2013-January/msg01253.html This is intended to implement that suggestion. This changeset transplants this trivial fix to connman.
Diffstat (limited to 'src/tethering.c')
-rw-r--r--src/tethering.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tethering.c b/src/tethering.c
index ab892d3a..bd79804e 100644
--- a/src/tethering.c
+++ b/src/tethering.c
@@ -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"