Skip to content

Commit 9069f7f

Browse files
authored
zlib-ng: fix build on FreeBSD (#384014)
2 parents 16cd634 + 2561e37 commit 9069f7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/zl/zlib-ng/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ stdenv.mkDerivation rec {
3232
pkg-config
3333
];
3434

35+
env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD {
36+
# This can be removed when we switch to libcxx from llvm 20
37+
# https://github.com/llvm/llvm-project/pull/122361
38+
NIX_CFLAGS_COMPILE = "-D_XOPEN_SOURCE=700";
39+
};
40+
3541
buildInputs = [ gtest ];
3642

3743
cmakeFlags = [

0 commit comments

Comments
 (0)