git: ab0f26a5d02e - 2026Q1 - net/ucx: fix build on FreeBSD 13.5 by defining s6_addr32 shim
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Mar 2026 19:18:46 UTC
The branch 2026Q1 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ab0f26a5d02e7298582fe805fb2bf91f462a2486
commit ab0f26a5d02e7298582fe805fb2bf91f462a2486
Author: GenericRikka <rikka.goering@outlook.de>
AuthorDate: 2026-03-02 11:53:48 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2026-03-24 19:18:14 +0000
net/ucx: fix build on FreeBSD 13.5 by defining s6_addr32 shim
FreeBSD's struct in6_addr does not provide s6_addr32 directly. Add a small
shim in src/uct/ib/base/ib_device.c to map s6_addr32 to the FreeBSD layout
(__u6_addr.__u6_addr32) when s6_addr32 is not already available.
PR: 293429
Tested by: kib
MFH: 2026Q1
(cherry picked from commit 63a68d9d459a0ed27f7b1dadaee6cf4cdbe8e2af)
---
net/ucx/files/patch-src_uct_ib_base_ib__device.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/net/ucx/files/patch-src_uct_ib_base_ib__device.c b/net/ucx/files/patch-src_uct_ib_base_ib__device.c
new file mode 100644
index 000000000000..7916113cbb69
--- /dev/null
+++ b/net/ucx/files/patch-src_uct_ib_base_ib__device.c
@@ -0,0 +1,17 @@
+--- src/uct/ib/base/ib_device.c.orig 2026-03-02 11:31:24 UTC
++++ src/uct/ib/base/ib_device.c
+@@ -30,6 +30,14 @@
+ #include <rdma/rdma_netlink.h>
+ #endif
+
++#ifndef s6_addr32
++# if defined(__FreeBSD__)
++# define s6_addr32 __u6_addr.__u6_addr32
++# elif defined(__linux__)
++# define s6_addr32 u6_addr.u6_addr32
++# endif
++#endif
++
+ #define UCT_IB_DEVICE_LOOPBACK_NDEV_INDEX_INVALID 0
+
+