I've copied this patch from FreeBSD ports[1], and submitted it to what 
appears[2] to be the new upstream on gitlab.com[3].

This fixes the build for me on -current amd64.

Apologies if this isn't formatted correctly---I'm unsure how to
represent "mkdir mail/mlmmj/patches" using cvs diff, but otherwise
this applies cleanly for me on a fresh checkout.


[1] 
https://svnweb.freebsd.org/ports/head/mail/mlmmj/files/patch-gcc10?view=markup&pathrev=562279

[2] https://marc.info/?l=mlmmj&m=161122707912991&w=2

[3] https://gitlab.com/mlmmj/mlmmj


diff -u -p -r1.21 Makefile
--- Makefile    12 Jul 2019 20:47:30 -0000      1.21
+++ Makefile    14 Feb 2021 01:31:22 -0000
@@ -3,6 +3,7 @@
 COMMENT=       mailing list manager
 
 DISTNAME=      mlmmj-1.3.0
+REVISION=      1
 CATEGORIES=            mail
 
 HOMEPAGE=      http://mlmmj.org/

diff -u -p -N /dev/null patches/patch-include_mlmmj_h
--- /dev/null   Sat Feb 13 20:32:13 2021
+++ patches/patch-include_mlmmj_h       Sat Feb 13 20:25:12 2021
@@ -0,0 +1,22 @@
+diff --git include/mlmmj.h include/mlmmj.h
+index include/mlmmj.h 100644
+--- include/mlmmj.h
++++ include/mlmmj.h
+@@ -81,7 +81,7 @@ enum subtype {
+       SUB_NONE /* For when an address is not subscribed at all */
+ };
+ 
+-char *subtype_strs[7]; /* count matches enum above; defined in 
subscriberfuncs.c */
++extern char *subtype_strs[7]; /* count matches enum above; defined in 
subscriberfuncs.c */
+ 
+ enum subreason {
+       SUB_REQUEST,
+@@ -92,7 +92,7 @@ enum subreason {
+       SUB_SWITCH
+ };
+ 
+-char * subreason_strs[6]; /* count matches enum above; defined in 
subscriberfuncs.c */
++extern char * subreason_strs[6]; /* count matches enum above; defined in 
subscriberfuncs.c */
+ 
+ void print_version(const char *prg);
+ 

Reply via email to