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>
This commit is contained in:
NHOrus 2024-04-01 11:51:45 +04:00 committed by Matthew Smith
parent b45d8bedc6
commit 650f13dce6
No known key found for this signature in database
GPG Key ID: CC050405F37B956E
2 changed files with 13 additions and 0 deletions

View File

@ -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 *, ...);

View File

@ -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