From 5a28f14096c3f2e548cdf6bcfd008930e6a4e733 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Thu, 19 Jul 2018 10:55:19 -0700 Subject: [PATCH] Use _GNU_SOURCE instead of _BSD_SOURCE and _SYSV_SOURCE uemacs uses a lot of legacy stuff, which causes warnings with newer toolchains. This makes it build reasonably warning-free. Signed-off-by: Linus Torvalds --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f93aa28..89a34be 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ CFLAGS=-O2 $(WARNINGS) -g #CFLAGS=-O4 -DSVR4 # Sun #CFLAGS=-O -qchars=signed # RS/6000 ifeq ($(uname_S),Linux) - DEFINES=-DAUTOCONF -DPOSIX -DUSG -D_BSD_SOURCE -D_SVID_SOURCE -D_XOPEN_SOURCE=600 + DEFINES=-DAUTOCONF -DPOSIX -DUSG -D_XOPEN_SOURCE=600 -D_GNU_SOURCE endif ifeq ($(uname_S),FreeBSD) DEFINES=-DAUTOCONF -DPOSIX -DSYSV -D_FREEBSD_C_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_XOPEN_SOURCE=600