From c59aafb5b3f6a8063e24c53042be178ada155552 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 7 Dec 2017 18:49:42 +0100 Subject: Compile with std=c11 and set appropriate glibc feature test macros might resolve #333 and #348 --- config.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.mk') diff --git a/config.mk b/config.mk index b230e3d..394a13f 100644 --- a/config.mk +++ b/config.mk @@ -37,6 +37,9 @@ scalable_icon_dir = ${icon_dir}/scalable/apps CFLAGS ?= -g -O2 CFLAGS += -Wall -Wextra -pedantic +# Settings for glibc >= 2.19 - may need to be adjusted for other systems +CFLAGS += -std=c11 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500 + ifeq (${curl},1) CFLAGS += -DHAVE_LIBCURL LDLIBS += -lcurl -- cgit v1.2.3