examples/l2fwd-cat: fix external build

Message ID 20230622135021.831889-1-thomas@monjalon.net (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series examples/l2fwd-cat: fix external build |

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS

Commit Message

Thomas Monjalon June 22, 2023, 1:48 p.m. UTC
  From: David Marchand <david.marchand@redhat.com>

cpu_set_t definition requires _GNU_SOURCE.

Fixes: e0473c6d5b18 ("eal: fix build with musl")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@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(+)
  

Comments

Thomas Monjalon June 22, 2023, 1:55 p.m. UTC | #1
22/06/2023 15:48, Thomas Monjalon:
> From: David Marchand <david.marchand@redhat.com>
> 
> cpu_set_t definition requires _GNU_SOURCE.
> 
> Fixes: e0473c6d5b18 ("eal: fix build with musl")
> Cc: stable@dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand@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"

Tested-by: Thomas Monjalon <thomas@monjalon.net>
and applied.
  

Patch

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