vncrec: fix bulid with gcc 14 (#388570)

This commit is contained in:
kirillrdy
2025-03-10 21:25:37 +11:00
committed by GitHub
+9
View File
@@ -27,6 +27,15 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ];
postPatch = ''
substituteInPlace vncpasswd/vncpasswd.c \
--replace-fail "return;" "return 0;"
sed -i '7i #include <stdlib.h>' vncconnect/vncconnect.c
sed -i '8i #include <string.h>' vncconnect/vncconnect.c
sed -i '31i #include <time.h>' libvncauth/vncauth.c
'';
nativeBuildInputs = [
imake
gccmakedep