diff options
author | Christian Hesse <mail@eworm.de> | 2013-07-04 22:35:03 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-07-04 22:35:03 +0200 |
commit | 05c8a23ec8725815b54f9d73c184a70e491c2f20 (patch) | |
tree | 3bbff60e29a39acc133a56fbc4361a2f47c87c8b /netlink-notify.c | |
parent | e32cc549d19a0fb59febf8487d604bf4a7f774b5 (diff) | |
download | netlink-notify-05c8a23ec8725815b54f9d73c184a70e491c2f20.tar.gz netlink-notify-05c8a23ec8725815b54f9d73c184a70e491c2f20.tar.zst |
add -Werror to CFLAGS and fix includes
Diffstat (limited to 'netlink-notify.c')
-rw-r--r-- | netlink-notify.c | 4 |
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> |