Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From a6c547e46bbadd2c08be9944a85308f6625263cb Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 29 Aug 2022 23:15:44 -0700 |
| 4 | Subject: [PATCH] examples: Include alloca.h for strdupa |
| 5 | |
| 6 | musl defines strdupa via a macro which uses alloca() therefore include |
| 7 | the header to get the prototype |
| 8 | |
| 9 | Upstream-Status: Submitted [https://github.com/linux-rdma/rdma-core/pull/1212] |
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 11 | --- |
| 12 | libibverbs/examples/asyncwatch.c | 1 + |
| 13 | 1 file changed, 1 insertion(+) |
| 14 | |
| 15 | diff --git a/libibverbs/examples/asyncwatch.c b/libibverbs/examples/asyncwatch.c |
| 16 | index 724796e58..842b94180 100644 |
| 17 | --- a/libibverbs/examples/asyncwatch.c |
| 18 | +++ b/libibverbs/examples/asyncwatch.c |
| 19 | @@ -36,6 +36,7 @@ |
| 20 | #include <endian.h> |
| 21 | #include <getopt.h> |
| 22 | #include <string.h> |
| 23 | +#include <alloca.h> |
| 24 | |
| 25 | #include <util/compiler.h> |
| 26 | #include <infiniband/verbs.h> |
| 27 | -- |
| 28 | 2.37.2 |
| 29 | |