aboutsummaryrefslogtreecommitdiffstats
path: root/netlink-notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'netlink-notify.c')
-rw-r--r--netlink-notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/netlink-notify.c b/netlink-notify.c
index 27f9986..9bd22e4 100644
--- a/netlink-notify.c
+++ b/netlink-notify.c
@@ -17,6 +17,10 @@
#include <linux/if.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
+/* we have to undefine this before including net/if.h to
+ * notget redefined structs, etc. */
+#undef __USE_MISC
+#include <net/if.h>
#include <netinet/in.h>
#include <sys/socket.h>