[PATCH] examples/l2fwd-cat: fix external build
Thomas Monjalon
thomas at monjalon.net
Thu Jun 22 15:48:55 CEST 2023
From: David Marchand <david.marchand at redhat.com>
cpu_set_t definition requires _GNU_SOURCE.
Fixes: e0473c6d5b18 ("eal: fix build with musl")
Cc: stable at dpdk.org
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
This patch was missing in the patchset to make all examples compile.
It will be merged with others from:
"Test examples compilation externally"
---
examples/l2fwd-cat/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/examples/l2fwd-cat/Makefile b/examples/l2fwd-cat/Makefile
index 23a09550a4..d06053451a 100644
--- a/examples/l2fwd-cat/Makefile
+++ b/examples/l2fwd-cat/Makefile
@@ -35,6 +35,7 @@ endif
endif
CFLAGS += -DALLOW_EXPERIMENTAL_API
+CFLAGS += -D_GNU_SOURCE
LDFLAGS += -lpqos
--
2.41.0
More information about the dev
mailing list