aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--netlink-notify.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/netlink-notify.h b/netlink-notify.h
index a58f2f7..cf67621 100644
--- a/netlink-notify.h
+++ b/netlink-notify.h
@@ -31,18 +31,16 @@
#include <arpa/inet.h>
#include <ifaddrs.h>
-#include <linux/if.h>
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
-#include <linux/wireless.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/ioctl.h>
#include <sys/socket.h>
+#include <linux/if.h>
+#include <linux/netlink.h>
+#include <linux/rtnetlink.h>
+#include <linux/wireless.h>
+
/* systemd headers */
#ifdef HAVE_SYSTEMD
#include <systemd/sd-daemon.h>