gentoo-ebuilds/net-libs/libesmtp/files/libesmtp-1.1.0-fix-build-with-clang16.patch
Brahmajit Das 6c55e3cb05
net-libs/libesmtp: Fix call to undeclared function strlcpy
And update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/896056
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33149
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2023-10-08 11:19:56 +03:00

21 lines
397 B
Diff

Bug: https://bugs.gentoo.org/896056
--- a/smtp-api.c
+++ b/smtp-api.c
@@ -22,6 +22,7 @@
#include <config.h>
+#define _GNU_SOURCE
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
--- a/smtp-tls.c
+++ b/smtp-tls.c
@@ -47,6 +47,7 @@
/* This stuff doesn't belong here */
/* vvvvvvvvvvv */
+#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>