summaryrefslogtreecommitdiff
path: root/net-libs/libesmtp/files/libesmtp-1.1.0-fix-build-with-clang16.patch
blob: 3211737e7be9a0ada1b0475b21cde4095b90d053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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>