aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/rdma-core/rdma-core/0001-examples-Include-alloca.h-for-strdupa.patch
blob: cb472d9db94fc6f92f2646b6ecae0d95bfd69e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From a6c547e46bbadd2c08be9944a85308f6625263cb Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 29 Aug 2022 23:15:44 -0700
Subject: [PATCH] examples: Include alloca.h for strdupa

musl defines strdupa via a macro which uses alloca() therefore include
the header to get the prototype

Upstream-Status: Submitted [https://github.com/linux-rdma/rdma-core/pull/1212]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 libibverbs/examples/asyncwatch.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libibverbs/examples/asyncwatch.c b/libibverbs/examples/asyncwatch.c
index 724796e58..842b94180 100644
--- a/libibverbs/examples/asyncwatch.c
+++ b/libibverbs/examples/asyncwatch.c
@@ -36,6 +36,7 @@
 #include <endian.h>
 #include <getopt.h>
 #include <string.h>
+#include <alloca.h>
 
 #include <util/compiler.h>
 #include <infiniband/verbs.h>
-- 
2.37.2