ports/mail/mls/files/patch-mls.h
Robert Clausecker 342a19d2da mail/mls: improve and unbreak with -fno-common
- liberally sprinkle extern all over the place
 - define LICENSE
 - take over maintainership of this unmaintained port
 - ship examples and html files
 - define DOCS and EXAMPLES options
 - pacify portlint and portclippy
 - add a pkg-message as the author intended
 - remove dead MASTER_SITES entry

PR:		259586
Approved by:	flo (mentor)
Differential Revision: https://reviews.freebsd.org/D38516
2023-02-14 21:18:57 +01:00

21 lines
697 B
C

--- mls.h.orig 2003-06-02 11:26:34 UTC
+++ mls.h
@@ -75,6 +75,9 @@
#define EXIT_NOMEM 4
#define EXIT_REGEX 5
+// because we must specify it when 2dimensional array is passed to function
+#define SNUMB_LEN 4
+
/* *** structures for BEST messages *** */
typedef struct bestQUOTE* nQptr;
struct bestQUOTE {
@@ -104,7 +107,7 @@ struct bestTEXT {
};
// Reg. expressions
-regex_t r_from, r_time, r_re, r_date, r_dow, r_mail,
+extern regex_t r_from, r_time, r_re, r_date, r_dow, r_mail,
r_m_ims, r_m_bat, r_m_lot, r_m_oue, r_m_ouc, r_m_oum, r_m_out,
r_m_cal, r_m_moz, r_m_peg, r_m_eud, r_m_ope, r_m_opw, r_m_pos,
r_m_pob, r_m_kma, r_m_imp, r_m_mut, r_m_pin, r_m_pi2, r_m_syl,