From c9eccb9c47b87fbc66da0bee4083c082e1c5e67b Mon Sep 17 00:00:00 2001 From: Sven Eckelmann Date: Wed, 20 Dec 2017 11:03:15 +0100 Subject: [PATCH] gluon-radv-filterd: Use _GNU_SOURCE by default Both source files require the _GNU_SOURCE preprocessor. But for one file it is defined in the source and for the other one in the Makefile. It is better to have it in the Makefile to avoid that different source files in the same project use different. Signed-off-by: Sven Eckelmann --- package/gluon-radv-filterd/src/Makefile | 4 +++- package/gluon-radv-filterd/src/gluon-radv-filterd.c | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package/gluon-radv-filterd/src/Makefile b/package/gluon-radv-filterd/src/Makefile index 82a2bace..87000139 100644 --- a/package/gluon-radv-filterd/src/Makefile +++ b/package/gluon-radv-filterd/src/Makefile @@ -1,7 +1,9 @@ all: gluon-radv-filterd respondd.so +CPPFLAGS += -D_GNU_SOURCE + gluon-radv-filterd: gluon-radv-filterd.c $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -o $@ $^ $(LDLIBS) respondd.so: respondd.c - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared -fPIC -D_GNU_SOURCE -o $@ $^ $(LDLIBS) -lgluonutil + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared -fPIC -o $@ $^ $(LDLIBS) -lgluonutil diff --git a/package/gluon-radv-filterd/src/gluon-radv-filterd.c b/package/gluon-radv-filterd/src/gluon-radv-filterd.c index 18d6f303..3aae38d0 100644 --- a/package/gluon-radv-filterd/src/gluon-radv-filterd.c +++ b/package/gluon-radv-filterd/src/gluon-radv-filterd.c @@ -23,7 +23,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#define _GNU_SOURCE #include #include #include