From b07ef31a8bc1a27c9cb558907d7106cdaba52ad3 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 21 Jan 2024 19:50:46 +0100 Subject: [PATCH] _9base: fix build on x86_64-darwin --- pkgs/by-name/_9/_9base/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/_9/_9base/package.nix b/pkgs/by-name/_9/_9base/package.nix index 809b9da39af4..6f53870c36cf 100644 --- a/pkgs/by-name/_9/_9base/package.nix +++ b/pkgs/by-name/_9/_9base/package.nix @@ -47,6 +47,9 @@ stdenv.mkDerivation { # hide really common warning that floods the logs: # warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" "-D_DEFAULT_SOURCE" + ] ++ lib.optionals stdenv.cc.isClang [ + # error: call to undeclared function 'p9mbtowc'; ISO C99 and later do not support implicit function declarations + "-Wno-error=implicit-function-declaration" ]; LDFLAGS = lib.optionalString enableStatic "-static"; makeFlags = [