summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNHOrus <jy6x2b32pie9@yahoo.com>2024-04-01 11:51:45 +0400
committerMatthew Smith <matthew@gentoo.org>2024-04-14 16:06:28 +0000
commit650f13dce660ef67fd90b7e6134a9ab79fa36c2c (patch)
tree1212c20d8c47fcf0d6b22cca6f53d9e340cf8faf /mail-mta
parentdev-lang/gprolog: EAPI8 bump, minor improvements (diff)
downloadgentoo-650f13dce660ef67fd90b7e6134a9ab79fa36c2c.tar.gz
gentoo-650f13dce660ef67fd90b7e6134a9ab79fa36c2c.tar.bz2
gentoo-650f13dce660ef67fd90b7e6134a9ab79fa36c2c.zip
mail-mta/opensmtpd: Add missing include
Fixes GCC-14 build error implicit declaration of function snprintf Closes: https://bugs.gentoo.org/922951 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/36035 Signed-off-by: Matthew Smith <matthew@gentoo.org>
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/opensmtpd/files/opensmtpd-7.4.0-missing-include.patch11
-rw-r--r--mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/mail-mta/opensmtpd/files/opensmtpd-7.4.0-missing-include.patch b/mail-mta/opensmtpd/files/opensmtpd-7.4.0-missing-include.patch
new file mode 100644
index 000000000000..b11d62456743
--- /dev/null
+++ b/mail-mta/opensmtpd/files/opensmtpd-7.4.0-missing-include.patch
@@ -0,0 +1,11 @@
+diff -ur '--exclude=*.o' opensmtpd-7.4.0p1.orig/openbsd-compat/getdtablecount.c opensmtpd-7.4.0p1/openbsd-compat/getdtablecount.c
+--- a/openbsd-compat/getdtablecount.c 2024-04-01 07:25:41.230753002 +0000
++++ b/openbsd-compat/getdtablecount.c 2024-04-01 07:27:23.556124378 +0000
+@@ -20,6 +20,7 @@
+
+ #include <glob.h>
+ #include <unistd.h>
++#include <stdio.h>
+
+ void fatal(const char *, ...);
+ void fatalx(const char *, ...);
diff --git a/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild b/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild
index c5b98eddea63..9dfe3df3f2c5 100644
--- a/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild
+++ b/mail-mta/opensmtpd/opensmtpd-7.4.0_p1.ebuild
@@ -57,6 +57,8 @@ QA_CONFIG_IMPL_DECL_SKIP=( closefrom )
DOCS=( {CHANGES,README}.md )
+PATCHES=( "${FILESDIR}/${PN}-7.4.0-missing-include.patch" )
+
src_unpack() {
if use verify-sig; then
# Too many levels of symbolic links