libiscsi: fix build on clang 16

This commit is contained in:
Stanisław Pitucha 2023-10-06 11:40:55 +11:00
parent c6ce286002
commit c0ade64188

View file

@ -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.