Skip to content

Commit

Permalink
examples: Include alloca.h for strdupa
Browse files Browse the repository at this point in the history
musl defines strdupa via a macro which uses alloca() therefore include
the header to get the prototype

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Aug 30, 2022
1 parent d9bff23 commit a6c547e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libibverbs/examples/asyncwatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <endian.h>
#include <getopt.h>
#include <string.h>
#include <alloca.h>

#include <util/compiler.h>
#include <infiniband/verbs.h>
Expand Down

0 comments on commit a6c547e

Please sign in to comment.