Displaying 2 results from an estimated 2 matches for "_libbridge_h".
2007 Nov 22
1
[Bridge] Conflict between net/if.h and linux/if.h
.../usr/include/net/if.h:176: error: redefinition of `struct ifconf'
I modify the libbridge.h to include the net/if.h only if the
linux/if.h is not define :
--- libbridge.h 2007-11-22 12:16:17.000000000 +0100
+++ libbridge_modify.h 2007-11-22 12:15:58.000000000 +0100
@@ -19,7 +19,9 @@
#ifndef _LIBBRIDGE_H
#define _LIBBRIDGE_H
+#ifndef _LINUX_IF_H
#include <net/if.h>
+#endif
#include <linux/if_bridge.h>
struct bridge_id
Do you think it's a good solution ?
Doude.
2013 Mar 05
0
[Bridge] [PATCH] bridge-utils: Fix compile against linux-3.8.x
...ff-by: Russell Senior <russell at personaltelco.net>
---
libbridge/libbridge.h | 1 +
1 file changed, 1 insertion(+)
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>
--
1.7.10.4
--
Russell Senior, President
russell at personaltelco.net