summaryrefslogtreecommitdiff
path: root/pkg/swc
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-09-13 10:46:20 -0700
committerMichael Forney <mforney@mforney.org>2017-09-13 10:55:45 -0700
commit4e2dfee79e9a103bfe9f3b2db34711e49817b9b7 (patch)
tree2a3158078f0cfa4fd4adbed9052c3ce98e208557 /pkg/swc
parent7c48279d211f2d7362c627b954b22f514a90b418 (diff)
swc: Define _POSIX_C_SOURCE for convert_font
This is built on the host system, and recent glibc requires this for strdup.
Diffstat (limited to 'pkg/swc')
-rw-r--r--pkg/swc/gen.rc2
1 files changed, 1 insertions, 1 deletions
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