libesmtp/libesmtp-c99.patch
Jan Engelhardt 7cacbb60fb - Added libesmtp-c99.patch which adds a required feature macro
definition so that strlcpy function is properly declared in the
  standard header file.  [boo#1225800]

If the request is fine, please forward it also to Factory soon-ish so
that we can switch the default compiler.

OBS-URL: https://build.opensuse.org/package/show/server:mail/libesmtp?expand=0&rev=9
2024-07-10 15:03:50 +00:00

25 lines
625 B
Diff

Index: libESMTP-1.1.0/smtp-api.c
===================================================================
--- libESMTP-1.1.0.orig/smtp-api.c
+++ libESMTP-1.1.0/smtp-api.c
@@ -22,6 +22,7 @@
#include <config.h>
+#define _GNU_SOURCE
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
Index: libESMTP-1.1.0/smtp-tls.c
===================================================================
--- libESMTP-1.1.0.orig/smtp-tls.c
+++ libESMTP-1.1.0/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>