Displaying 1 result from an estimated 1 matches for "libbridge_modify".
2007 Nov 22
1
[Bridge] Conflict between net/if.h and linux/if.h
...uct ifmap'
/usr/include/net/if.h:126: error: redefinition of `struct ifreq'
/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.