aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-07-19 10:55:19 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-07-19 10:57:30 -0700
commit5a28f14096c3f2e548cdf6bcfd008930e6a4e733 (patch)
treea2bc970321b267b58fbac6dd0024b05ad32dc030
parent9be85a9b60677acc8f8c6da048a0c08e67e172f8 (diff)
downloaduemacs-5a28f14096c3f2e548cdf6bcfd008930e6a4e733.tar.gz
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 <torvalds@linux-foundation.org>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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