diff mbox series

[4/7] enable _XOPEN_SOURCE on musl for wchar usage in curses

Message ID 20220824063443.1774094-4-raj.khem@gmail.com
State New
Headers show
Series [1/7] xinetd: Pass missing -D_GNU_SOURCE | expand

Commit Message

Khem Raj Aug. 24, 2022, 6:34 a.m. UTC
This is defined for glibc automatically with _GNU_SOURCE but not for
musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-support/pinentry/pinentry_1.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)

Comments

Luca Ceresoli Aug. 24, 2022, 9:44 a.m. UTC | #1
Hi Mhem,

On Tue, 23 Aug 2022 23:34:40 -0700
"Khem Raj" <raj.khem@gmail.com> wrote:

> This is defined for glibc automatically with _GNU_SOURCE but not for
> musl
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>

Missing 'pinentry: ' subject prefix. I added it when taking the patch
on my testing branch, no need to resend.
Khem Raj Aug. 24, 2022, 1:56 p.m. UTC | #2
On Wed, Aug 24, 2022 at 2:44 AM Luca Ceresoli <luca.ceresoli@bootlin.com> wrote:
>
> Hi Mhem,
>
> On Tue, 23 Aug 2022 23:34:40 -0700
> "Khem Raj" <raj.khem@gmail.com> wrote:
>
> > This is defined for glibc automatically with _GNU_SOURCE but not for
> > musl
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
>
> Missing 'pinentry: ' subject prefix. I added it when taking the patch
> on my testing branch, no need to resend.
>

ah thanks for help Luca.

> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
diff mbox series

Patch

diff --git a/meta/recipes-support/pinentry/pinentry_1.2.0.bb b/meta/recipes-support/pinentry/pinentry_1.2.0.bb
index 169cac8965..e6cc71a547 100644
--- a/meta/recipes-support/pinentry/pinentry_1.2.0.bb
+++ b/meta/recipes-support/pinentry/pinentry_1.2.0.bb
@@ -32,5 +32,8 @@  PACKAGECONFIG[secret] = "--enable-libsecret, --disable-libsecret, libsecret"
 EXTRA_OECONF = " \
     --disable-rpath \
 "
+EXTRA_OECONF:append:libc-musl = " \
+    ac_cv_should_define__xopen_source=yes \
+"
 
 BBCLASSEXTEND = "native nativesdk"