summaryrefslogtreecommitdiffstats
path: root/libs/libesmtp/patches/010-gcc14.patch
blob: 2455c185bac2e3978a46ac0ce90ac6f6511a84d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/smtp-api.c
+++ b/smtp-api.c
@@ -22,6 +22,10 @@
 
 #include <config.h>
 
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
 #include <stdarg.h>
 #include <string.h>
 #include <stdlib.h>
--- a/smtp-tls.c
+++ b/smtp-tls.c
@@ -47,6 +47,11 @@
 
 /* This stuff doesn't belong here */
 /* vvvvvvvvvvv */
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>