From: Jason A. Donenfeld Date: Wed, 17 May 2017 16:34:23 +0000 (+0200) Subject: wg: opt-in globally to GNU-isms to keep the BSDs happy X-Git-Tag: v1.0.20191226~254 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a7be3fac59242008bad81cdc1a6a0e40393b65d;p=thirdparty%2Fwireguard-tools.git wg: opt-in globally to GNU-isms to keep the BSDs happy Signed-off-by: Jason A. Donenfeld --- diff --git a/src/Makefile b/src/Makefile index ec75052..2dd7f6a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -32,7 +32,7 @@ endif endif CFLAGS ?= -O3 -CFLAGS += -std=gnu11 +CFLAGS += -std=gnu11 -D_GNU_SOURCE CFLAGS += -Wall -Wextra CFLAGS += -MMD -MP CFLAGS += -DRUNSTATEDIR="\"$(RUNSTATEDIR)\"" diff --git a/src/terminal.c b/src/terminal.c index 862bb4a..e5b5edb 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -1,6 +1,5 @@ /* Copyright (C) 2015-2017 Jason A. Donenfeld . All Rights Reserved. */ -#define _GNU_SOURCE #include #include #include