tsocks: fix build with GCC 14 (#369474)

This commit is contained in:
Arne Keller
2025-01-11 19:15:29 +01:00
committed by GitHub
+2
View File
@@ -17,6 +17,8 @@ stdenv.mkDerivation rec {
preConfigure = ''
sed -i -e "s,\\\/usr,"$(echo $out|sed -e "s,\\/,\\\\\\\/,g")",g" tsocks
substituteInPlace configure \
--replace-fail "main(){return(0);}" "int main(){return(0);}"
substituteInPlace tsocks --replace /usr $out
'';