From 05c8a23ec8725815b54f9d73c184a70e491c2f20 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 4 Jul 2013 22:35:03 +0200 Subject: add -Werror to CFLAGS and fix includes --- Makefile | 2 +- netlink-notify.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bd6746c..56248bf 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # netlink-notify - Notify about netlink changes CC := gcc -CFLAGS += -O2 -Wall +CFLAGS += -O2 -Wall -Werror CFLAGS += $(shell pkg-config --cflags --libs libnotify) VERSION = $(shell git describe --tags --long) 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 #include #include +/* we have to undefine this before including net/if.h to + * notget redefined structs, etc. */ +#undef __USE_MISC +#include #include #include -- cgit v1.2.3-54-g00ecf