libselinux: remove use of LFS64 function

This function has been removed in musl 1.2.4.

+6 -1
+6 -1
pkgs/os-specific/linux/libselinux/default.nix
··· 39 39 -i 'a/libselinux/*' --strip 1 <$TMPDIR/patch >"$out" 40 40 ''; 41 41 }) 42 + 43 + (fetchurl { 44 + url = "https://git.yoctoproject.org/meta-selinux/plain/recipes-security/selinux/libselinux/0003-libselinux-restore-drop-the-obsolete-LSF-transitiona.patch?id=62b9c816a5000dc01b28e78213bde26b58cbca9d"; 45 + sha256 = "sha256-RiEUibLVzfiRU6N/J187Cs1iPAih87gCZrlyRVI2abU="; 46 + }) 42 47 ]; 43 48 44 49 nativeBuildInputs = [ pkg-config python3 ] ++ optionals enablePython [ ··· 53 58 # command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror] 54 59 hardeningDisable = [ "fortify" ]; 55 60 56 - env.NIX_CFLAGS_COMPILE = "-Wno-error"; 61 + env.NIX_CFLAGS_COMPILE = "-Wno-error -D_FILE_OFFSET_BITS=64"; 57 62 58 63 makeFlags = [ 59 64 "PREFIX=$(out)"