Skip to content

Commit

Permalink
tsocks: fix build with GCC 14 (#369474)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored Jan 11, 2025
2 parents b524748 + c028652 commit 2947357
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/by-name/ts/tsocks/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

Expand Down

0 comments on commit 2947357

Please sign in to comment.