Unverified Commit 29473573 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

tsocks: fix build with GCC 14 (#369474)

parents b5247487 c0286526
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
  '';