diff --git a/net/libiscsi/files/patch-configure.ac b/net/libiscsi/files/patch-configure.ac index 38166307dcde..ddf9df4dee23 100644 --- a/net/libiscsi/files/patch-configure.ac +++ b/net/libiscsi/files/patch-configure.ac @@ -1,12 +1,12 @@ ---- ./configure.ac.ORIG 2023-02-11 20:12:38.532565000 +0100 -+++ ./configure.ac 2023-02-11 20:14:27.194137000 +0100 -@@ -170,7 +170,8 @@ +--- configure.ac.orig 2024-02-05 23:51:38 UTC ++++ configure.ac +@@ -170,7 +170,8 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include -#include ]], +#include +#error not on FreeBSD]], [[int ibv = IBV_WC_SEND;]])], [libiscsi_cv_HAVE_LINUX_ISER=yes],[libiscsi_cv_HAVE_LINUX_ISER=no])]) if test x"$libiscsi_cv_HAVE_LINUX_ISER" = x"yes"; then diff --git a/net/libiscsi/files/patch-lib_socket.c b/net/libiscsi/files/patch-lib_socket.c index 8b00a0c73bf9..25ed1fdaece0 100644 --- a/net/libiscsi/files/patch-lib_socket.c +++ b/net/libiscsi/files/patch-lib_socket.c @@ -1,11 +1,20 @@ ---- ./lib/socket.c.ORIG 2023-02-11 20:12:27.340472000 +0100 -+++ ./lib/socket.c 2023-02-11 21:13:25.802721000 +0100 -@@ -140,7 +140,7 @@ +--- lib/socket.c.orig 2024-02-05 23:51:38 UTC ++++ lib/socket.c +@@ -140,7 +140,7 @@ iscsi_add_to_outqueue(struct iscsi_context *iscsi, str pdu->next = NULL; } -void iscsi_decrement_iface_rr() { +void iscsi_decrement_iface_rr(void) { iface_rr--; } +@@ -531,7 +531,7 @@ iscsi_iovector_readv_writev(struct iscsi_context *iscs + + if (pos < iovector->offset) { + iscsi_set_error(iscsi, "%s: iovector reset. pos(%d) is smaller than" +- "current offset(%ld)", rw, pos, iovector->offset); ++ "current offset(%zd)", rw, pos, iovector->offset); + errno = EINVAL; + return -1; + } diff --git a/net/libiscsi/files/patch-utils_iscsi-discard.c b/net/libiscsi/files/patch-utils_iscsi-discard.c new file mode 100644 index 000000000000..d238f3e28c18 --- /dev/null +++ b/net/libiscsi/files/patch-utils_iscsi-discard.c @@ -0,0 +1,14 @@ +--- utils/iscsi-discard.c.orig 2024-02-05 23:51:38 UTC ++++ utils/iscsi-discard.c +@@ -220,7 +220,11 @@ int main(int argc, char *argv[]) + + capacity = block_length * (rc16->returned_lba + 1); + if (offset > capacity) { ++#ifdef __i386__ ++ fprintf(stderr,"Offset(%llu) exceeds capacity(%llu)\n", offset, capacity); ++#else + fprintf(stderr,"Offset(%lu) exceeds capacity(%lu)\n", offset, capacity); ++#endif + goto free_task; + } +