Files
guix-mirror/gnu/packages/patches/cassini-headers-memset.patch
Ludovic Courtès 4d6c74eaaf gnu: cassini-headers: Add missing include in ‘cxi_prov_hw.h’.
* gnu/packages/patches/cassini-headers-memset.patch: New file.
* gnu/packages/linux.scm (cassini-headers)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.

Change-Id: I67b3b0ba40a0b71414add9ba1d7d550bfb53ecb9
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2026-06-22 11:52:38 +02:00

27 lines
974 B
Diff

Add missing header needed for 'memset'.
Lack of this include would lead to misdiagnostics by libfabric's 'configure' script:
checking whether cxil_svc_get_vni_range is declared... no
... where the real problem is lack of a 'memset' declaration:
configure:37208: checking whether cxil_svc_get_vni_range is declared
configure:37208: gcc -c -O2 -DNDEBUG -pipe -fvisibility=hidden -Wall -Wundef -Wpointer-arith -I/include conftest.c >&5
In file included from /gnu/store/…-libcxi-14.0.0/include/libcxi/libcxi.h:22,
from conftest.c:134:
/gnu/store/…-cassini-headers-14.0.0/include/cxi_prov_hw.h: In function 'cxi_cq_update_wp':
/gnu/store/…-cassini-headers-14.0.0/include/cxi_prov_hw.h:638:17: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
--- a/include/cxi_prov_hw.h
+++ b/include/cxi_prov_hw.h
@@ -11,6 +11,7 @@
#ifndef __KERNEL__
#include <stdbool.h>
#include <errno.h>
+#include <string.h>
#endif
/*