From 6d1ac90f3432dd10c44b0ccfd46f01e7badbe74b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 7 Sep 2022 12:36:56 -0700 Subject: [PATCH] libesmtp: Enable gnu strerror_r on glibc Signed-off-by: Khem Raj --- meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb b/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb index 164c8c2612..3d0764a3b9 100644 --- a/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb +++ b/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb @@ -32,5 +32,9 @@ EXTRA_OEMESON = " \ CFLAGS += "-D_GNU_SOURCE" +do_configure:prepend:libc-glibc() { + sed -i -e "s/conf.set('HAVE_WORKING_STRERROR_R', 0)/conf.set('HAVE_WORKING_STRERROR_R', 1)/g" ${S}/meson.build +} + FILES:${PN} = "${libdir}/lib*${SOLIBS} \ ${libdir}/esmtp-plugins-6.2.0/*${SOLIBSDEV}"