Skip to content

Commit

Permalink
libiscsi: fix build on clang 16
Browse files Browse the repository at this point in the history
  • Loading branch information
viraptor committed Oct 6, 2023
1 parent c6ce286 commit c0ade64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/development/libraries/libiscsi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "0ajrkkg5awmi8m4b3mha7h07ylg18k252qprvk1sgq0qbyd66zy7";
};

postPatch = ''
substituteInPlace lib/socket.c \
--replace "void iscsi_decrement_iface_rr() {" "void iscsi_decrement_iface_rr(void) {"
'';

nativeBuildInputs = [ autoreconfHook ];

# This problem is gone on libiscsi master.
Expand Down

0 comments on commit c0ade64

Please sign in to comment.