projects/guix·blob python-team · refs

26 lines · 974 B

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