From f152bf633e11637b83abb0c84b92fd083518e683 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sat, 27 Aug 2016 13:15:41 +0100 Subject: [PATCH] Build in C11 mode on Linux. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index a36af17..4845e90 100644 --- a/Makefile +++ b/Makefile @@ -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.