Skip to contentSkip to conversation

bridge-utils: Fix compile against linux-3.8.x

PATCH Russell Senior 1 participant 1 message Mar 5, 2013 1 message not in the archive Ethernet bridge

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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.

---
 libbridge/libbridge.h |    1 +
 1 file changed, 1 insertion(+)
libbridge/libbridge.h +1 -0
index 39964f2..dd14bae 100644
@@ -20,6 +20,7 @@
 #define _LIBBRIDGE_H
 
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <linux/if.h>
 #include <linux/if_bridge.h>
 
Signature · 6 lines
1.7.10.4


-- 
Russell Senior, President
[email protected]