catimg: fix compilation with gcc-14 (#369024)

This commit is contained in:
Gaétan Lepage
2024-12-29 11:50:35 +01:00
committed by GitHub
+3
View File
@@ -17,6 +17,9 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ cmake ];
env = lib.optionalAttrs (stdenv.hostPlatform.libc == "glibc") {
CFLAGS = "-D_DEFAULT_SOURCE";
};
meta = with lib; {
license = licenses.mit;