summaryrefslogtreecommitdiff
path: root/net-mail/email/files/email-3.1.3-fno-common.patch
blob: ecbc43d3413709c341779d3d7cbaf025ffc5749d (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
28
29
30
31
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)
 {