screen: fix building with llvm (#401862)

authored by Aleksana and committed by GitHub d8ac94c6 f7b8f1b4

+3 -2
+3 -2
pkgs/tools/misc/screen/default.nix
··· 24 24 ]; 25 25 26 26 # We need _GNU_SOURCE so that mallocmock_reset() is defined: https://savannah.gnu.org/bugs/?66416 27 - NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.cc.isGNU) "-D_GNU_SOURCE=1 -Wno-int-conversion -Wno-incompatible-pointer-types"; 27 + NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE=1 -Wno-int-conversion -Wno-incompatible-pointer-types"; 28 28 29 29 patches = [ 30 30 # GNU Screen 5.0 uses strncpy incorrectly in SendCmdMessage ··· 43 43 ] ++ lib.optional stdenv.hostPlatform.isDarwin utmp; 44 44 45 45 # The test suite seems to have some glibc malloc hooks that don't exist/link on macOS 46 - doCheck = !stdenv.hostPlatform.isDarwin; 46 + # With pkgsLLVM: tests/test-winmsgcond.c:53: assertion 'wmc_end(&wmc, pos + 1, &chg) == pos' failed 47 + doCheck = !stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.useLLVM; 47 48 48 49 meta = with lib; { 49 50 homepage = "https://www.gnu.org/software/screen/";