From db1552fc2bc2fc8d413b377dfd945b4245e1c3ab Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 14 Nov 2024 14:16:54 -0800 Subject: [PATCH] libesmtp: fix compilation with GCC14 _GNU_SOURCE is needed for some functions. Removed now pointless libpthread depedency. Signed-off-by: Rosen Penev --- libs/libesmtp/Makefile | 4 ++-- libs/libesmtp/patches/010-gcc14.patch | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 libs/libesmtp/patches/010-gcc14.patch diff --git a/libs/libesmtp/Makefile b/libs/libesmtp/Makefile index d4b6f6c7ff..7accb40e94 100644 --- a/libs/libesmtp/Makefile +++ b/libs/libesmtp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libesmtp PKG_VERSION:=1.1.0 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Othmar Truniger PKG_LICENSE:=LGPL-2.0-or-later @@ -28,7 +28,7 @@ define Package/libesmtp CATEGORY:=Libraries TITLE:=A Library for Posting Electronic Mail URL:=https://libesmtp.github.io/ - DEPENDS:=+libpthread +libopenssl + DEPENDS:=+libopenssl endef define Build/InstallDev diff --git a/libs/libesmtp/patches/010-gcc14.patch b/libs/libesmtp/patches/010-gcc14.patch new file mode 100644 index 0000000000..2455c185ba --- /dev/null +++ b/libs/libesmtp/patches/010-gcc14.patch @@ -0,0 +1,27 @@ +--- a/smtp-api.c ++++ b/smtp-api.c +@@ -22,6 +22,10 @@ + + #include + ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif ++ + #include + #include + #include +--- a/smtp-tls.c ++++ b/smtp-tls.c +@@ -47,6 +47,11 @@ + + /* This stuff doesn't belong here */ + /* vvvvvvvvvvv */ ++ ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif ++ + #include + #include + #include -- 2.30.2