Use _DEFAULT_SOURCE to get ANSI-plus-defaults rather than
_BSD_SOURCE + _POSIX_SOURCE which newer glibc doesn't like. Fixes #143
This commit is contained in:
parent
244ea9851d
commit
fa91b24ffa
2
Makefile
2
Makefile
|
@ -24,7 +24,7 @@ UNAME := $(shell uname)
|
||||||
|
|
||||||
ifeq ($(UNAME), Linux)
|
ifeq ($(UNAME), Linux)
|
||||||
LIBS+=-lrt
|
LIBS+=-lrt
|
||||||
CFLAGS+=-std=c11 -D_BSD_SOURCE=1 -D_POSIX_C_SOURCE=200809L
|
CFLAGS+=-std=c11 -D_DEFAULT_SOURCE
|
||||||
endif
|
endif
|
||||||
ifeq ($(UNAME), Darwin)
|
ifeq ($(UNAME), Darwin)
|
||||||
# TODO: Putting GCC in C11 mode breaks things.
|
# TODO: Putting GCC in C11 mode breaks things.
|
||||||
|
|
Loading…
Reference in a new issue