diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-03-22 18:09:03 +0100 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-03-25 14:11:51 +0200 |
commit | 9fa8782303d9a16816cf1c7033c7883f203ac8eb (patch) | |
tree | 8457aede0545f6a9012f526df049ab48871ee6aa | |
parent | 3f2173fea50642d1ccaa9539dee16f6dfacef75b (diff) | |
download | connman-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.
-rw-r--r-- | src/tethering.c | 1 |
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" |