Skip to content

Commit

Permalink
Use _GNU_SOURCE instead of _BSD_SOURCE and _SYSV_SOURCE
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
torvalds committed Jul 19, 2018
1 parent 9be85a9 commit 5a28f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a28f14

Please sign in to comment.