aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb')
-rw-r--r--meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb6
1 files changed, 6 insertions, 0 deletions
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 bf1a12d48f..3d0764a3b9 100644
--- a/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb
+++ b/meta-networking/recipes-support/libesmtp/libesmtp_1.1.0.bb
@@ -30,5 +30,11 @@ EXTRA_OEMESON = " \
-Dntlm=disabled \
"
+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}"