From 3f19a5742a9803bd1da6d55e4f96cdcf45b5863b Mon Sep 17 00:00:00 2001 From: Francisco Demartino Date: Sat, 8 Jan 2022 03:49:30 -0300 Subject: [PATCH] set value for _POSIX_C_SOURCE macro this fixes the raylib build for me. https://github.com/raysan5/raylib/commit/c46989a1d961f3d8f898348e25c2b5b948ade9b2 --- lib.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.zig b/lib.zig index 2aead84..9bc32ff 100644 --- a/lib.zig +++ b/lib.zig @@ -14,7 +14,7 @@ pub fn Pkg(pkgdir: []const u8) type { const raylibFlags = &[_][]const u8{ "-std=c99", "-DPLATFORM_DESKTOP", - "-D_POSIX_C_SOURCE", + "-D_POSIX_C_SOURCE=199309L", "-DGL_SILENCE_DEPRECATION", };