From fa91b24ffab9f153cce01bd4768ba709c7c87c56 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Sun, 28 Aug 2016 23:48:17 +0100 Subject: [PATCH] Use _DEFAULT_SOURCE to get ANSI-plus-defaults rather than _BSD_SOURCE + _POSIX_SOURCE which newer glibc doesn't like. Fixes #143 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4845e90..11bfac7 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ UNAME := $(shell uname) ifeq ($(UNAME), Linux) LIBS+=-lrt -CFLAGS+=-std=c11 -D_BSD_SOURCE=1 -D_POSIX_C_SOURCE=200809L +CFLAGS+=-std=c11 -D_DEFAULT_SOURCE endif ifeq ($(UNAME), Darwin) # TODO: Putting GCC in C11 mode breaks things.