tsocks: fix build with GCC 14 (#369474)
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user