diff mbox series

[meta-networking,4/7] dante: Add _GNU_SOURCE for musl builds

Message ID 20251210081607.3196421-4-raj.khem@gmail.com
State New
Headers show
Series [meta-networking,1/7] frr: Upgrade to 10.5.0 | expand

Commit Message

Khem Raj Dec. 10, 2025, 8:16 a.m. UTC
This helps build fixes e.g. cpuset_t definitions etc.
glibc builds have _GNU_SOURCE defined inherently.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-networking/recipes-protocols/dante/dante_1.4.4.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta-networking/recipes-protocols/dante/dante_1.4.4.bb b/meta-networking/recipes-protocols/dante/dante_1.4.4.bb
index 7aa1103855..52cfba4c5f 100644
--- a/meta-networking/recipes-protocols/dante/dante_1.4.4.bb
+++ b/meta-networking/recipes-protocols/dante/dante_1.4.4.bb
@@ -29,6 +29,8 @@  CPPFLAGS += "-P"
 CFLAGS += "-I${STAGING_INCDIR}/tirpc"
 LIBS += "-ltirpc"

+CFLAGS:append:libc-musl = " -D_GNU_SOURCE"
+
 REQUIRED_DISTRO_FEATURES = "pam"

 EXTRA_AUTORECONF = "-I ${S}"