summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-05-17 12:16:52 +0200
committerJeroen Roovers <jer@gentoo.org>2020-05-17 12:17:49 +0200
commit538995b35f322ce17289f855575cca28084782bd (patch)
tree3d744f3c0727798ae2d7e2edcf8fc9a34ea0720f /net-mail/email/files
parentdev-libs/libisoburn: stable 1.5.2 for ppc64, bug #723354 (diff)
downloadgentoo-538995b35f322ce17289f855575cca28084782bd.tar.gz
gentoo-538995b35f322ce17289f855575cca28084782bd.tar.bz2
gentoo-538995b35f322ce17289f855575cca28084782bd.zip
net-mail/email: Fix building with CFLAGS=-fno-common
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Closes: https://bugs.gentoo.org/707620 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-mail/email/files')
-rw-r--r--net-mail/email/files/email-3.1.3-fno-common.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/net-mail/email/files/email-3.1.3-fno-common.patch b/net-mail/email/files/email-3.1.3-fno-common.patch
new file mode 100644
index 000000000000..ecbc43d34137
--- /dev/null
+++ b/net-mail/email/files/email-3.1.3-fno-common.patch
@@ -0,0 +1,32 @@
+--- a/include/email.h
++++ b/include/email.h
+@@ -61,11 +61,11 @@
+
+
+ /* Globally defined vars */
+-dhash table;
+-char *conf_file;
+-dstrbuf *global_msg;
++extern dhash table;
++extern char *conf_file;
++extern dstrbuf *global_msg;
+
+-struct mailer_options {
++extern struct mailer_options {
+ bool verbose;
+ bool encoding;
+ short html;
+--- a/src/email.c
++++ b/src/email.c
+@@ -40,6 +40,11 @@
+ #include "error.h"
+ #include "mimeutils.h"
+
++dhash table;
++char *conf_file;
++dstrbuf *global_msg;
++struct mailer_options Mopts;
++
+ static void
+ defaultDestr(void *ptr)
+ {