Build in C11 mode on Linux.

This commit is contained in:
Oliver Jowett 2016-08-27 13:15:41 +01:00
parent 36a5c16dd2
commit f152bf633e

View file

@ -24,6 +24,7 @@ UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
LIBS+=-lrt
CFLAGS+=-std=c11 -D_BSD_SOURCE=1 -D_POSIX_C_SOURCE=200809L
endif
ifeq ($(UNAME), Darwin)
# TODO: Putting GCC in C11 mode breaks things.