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:
Oliver Jowett 2016-08-28 23:48:17 +01:00
parent 244ea9851d
commit fa91b24ffa

View file

@ -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.