From 4e2dfee79e9a103bfe9f3b2db34711e49817b9b7 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 13 Sep 2017 10:46:20 -0700 Subject: swc: Define _POSIX_C_SOURCE for convert_font This is built on the host system, and recent glibc requires this for strdup. --- pkg/swc/gen.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/swc/gen.rc b/pkg/swc/gen.rc index 9f66923b..78a8aaf2 100644 --- a/pkg/swc/gen.rc +++ b/pkg/swc/gen.rc @@ -27,7 +27,7 @@ build '$outdir'/wayland-drm-server-protocol.h copy '$builddir'/pkg/wld/protocol/ { toolchain host - cflags '-std=c99' + cflags '-std=c99' -D '_POSIX_C_SOURCE=200809L' exe convert_font cursor/convert_font.c } >tools.ninja ; subninja tools.ninja -- cgit v1.2.3