vncrec: fix bulid with gcc 14

This commit is contained in:
Sigmanificient
2025-03-10 00:54:16 +01:00
parent 2ffb1163b2
commit cc27694eba
+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