Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2024 14:40:31 GMT
From:      Robert Clausecker <fuz@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 1b8d392e4f51 - 2024Q4 - net/libiscsi: fix build on armv7
Message-ID:  <202412191440.4BJEeVs3013302@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2024Q4 has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1b8d392e4f5139d1a40195a1d2a9ba48957bd8a9

commit 1b8d392e4f5139d1a40195a1d2a9ba48957bd8a9
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-12-17 16:00:21 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-12-19 14:40:04 +0000

    net/libiscsi: fix build on armv7
    
    Same fix as for i386.
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2024Q4
    
    (cherry picked from commit 91143a914876c78db5411602a40d5da1f696f66a)
---
 net/libiscsi/files/patch-utils_iscsi-discard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/libiscsi/files/patch-utils_iscsi-discard.c b/net/libiscsi/files/patch-utils_iscsi-discard.c
index d238f3e28c18..edcb51334243 100644
--- a/net/libiscsi/files/patch-utils_iscsi-discard.c
+++ b/net/libiscsi/files/patch-utils_iscsi-discard.c
@@ -4,7 +4,7 @@
  
  	capacity = block_length * (rc16->returned_lba + 1);
  	if (offset > capacity) {
-+#ifdef __i386__
++#if defined(__i386__) || defined(__arm__)
 +		fprintf(stderr,"Offset(%llu) exceeds capacity(%llu)\n", offset, capacity);
 +#else
  		fprintf(stderr,"Offset(%lu) exceeds capacity(%lu)\n", offset, capacity);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412191440.4BJEeVs3013302>