Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jul 2023 08:25:42 GMT
From:      Dirk Meyer <dinoex@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 23e2459a2e41 - main - mail/meta1: fix build with clang16
Message-ID:  <202307060825.3668Pg5T088245@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dinoex:

URL: https://cgit.FreeBSD.org/ports/commit/?id=23e2459a2e4160a87e2524438a24453d0a2b88ac

commit 23e2459a2e4160a87e2524438a24453d0a2b88ac
Author:     Dirk Meyer <dinoex@FreeBSD.org>
AuthorDate: 2023-07-06 08:25:32 +0000
Commit:     Dirk Meyer <dinoex@FreeBSD.org>
CommitDate: 2023-07-06 08:25:32 +0000

    mail/meta1: fix build with clang16
---
 mail/meta1/files/patch-include_sm_mapcnf.h | 11 +++++++++++
 mail/meta1/files/patch-smtps_smtps.c       | 15 +++++++++++++++
 2 files changed, 26 insertions(+)

diff --git a/mail/meta1/files/patch-include_sm_mapcnf.h b/mail/meta1/files/patch-include_sm_mapcnf.h
new file mode 100644
index 000000000000..9846ccf7b584
--- /dev/null
+++ b/mail/meta1/files/patch-include_sm_mapcnf.h
@@ -0,0 +1,11 @@
+--- include/sm/mapcnf.h.orig	2020-12-27 19:02:05 UTC
++++ include/sm/mapcnf.h
+@@ -50,7 +50,7 @@ typedef enum mapspec_kind_E mapspec_kind_T;
+ 	sm_map_P		 mst_##what##_map;	\
+ 	char			*mst_##what##_name;	\
+ 	char			*mst_##what##_type;	\
+-	sm_ret_T		*mst_##what##_ret
++	sm_ret_T		 mst_##what##_ret
+ 
+ #define SM_MAPSPEC_FL_IMPLDET	0x00000001u
+ 
diff --git a/mail/meta1/files/patch-smtps_smtps.c b/mail/meta1/files/patch-smtps_smtps.c
new file mode 100644
index 000000000000..64ece87b7c16
--- /dev/null
+++ b/mail/meta1/files/patch-smtps_smtps.c
@@ -0,0 +1,15 @@
+--- smtps/smtps.c.orig	2022-09-24 16:59:28 UTC
++++ smtps/smtps.c
+@@ -2168,9 +2168,11 @@ ss_proxy_policy(sasl_conn_t *conn, void *context, cons
+ 	return SASL_OK;
+ }
+ 
++typedef int (*sasl_callback_ft)(void);
++
+ static sasl_callback_t sm_sasl_srvcbs[] =
+ {
+-	{	SASL_CB_PROXY_POLICY,	&ss_proxy_policy,	NULL	},
++	{	SASL_CB_PROXY_POLICY,	(sasl_callback_ft)&ss_proxy_policy,	NULL	},
+ 	{	SASL_CB_LIST_END,	NULL,		NULL	}
+ };
+ #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307060825.3668Pg5T088245>