aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Senior <russell@personaltelco.net>2013-03-06 12:49:42 -0800
committerStephen Hemminger <stephen@networkplumber.org>2013-03-07 14:35:52 -0800
commit5eebb7f9288b7881ffb929b1fd494fe3ac3be27d (patch)
tree13fed780e2110d2b22becf4086d3a5e0b687f825
parent4ad479e4dde956925be6ed687c5ab058a69150ce (diff)
downloadbridge-utils-5eebb7f9288b7881ffb929b1fd494fe3ac3be27d.tar.gz
bridge-utils: Fix compile against linux-3.8.x
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. Signed-off-by: Russell Senior <russell@personaltelco.net>
-rw-r--r--libbridge/libbridge.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbridge/libbridge.h b/libbridge/libbridge.h
index 39964f2..dd14bae 100644
--- a/libbridge/libbridge.h
+++ b/libbridge/libbridge.h
@@ -20,6 +20,7 @@
#define _LIBBRIDGE_H
#include <sys/socket.h>
+#include <netinet/in.h>
#include <linux/if.h>
#include <linux/if_bridge.h>