aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-05 19:11:24 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-05 19:34:42 +0000
commit83e65d81b6551dc81a2ad5122c35935d32e42ec4 (patch)
tree3550d0f187aecbded2c46225538da50608b079eb
parent46f341bb935225b15ae3aea20293019eb5a22f68 (diff)
downloadports-83e65d81b6551dc81a2ad5122c35935d32e42ec4.tar.gz
ports-83e65d81b6551dc81a2ad5122c35935d32e42ec4.zip
mail/qconfirm: Fix build with llvm16
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--mail/qconfirm/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/qconfirm/Makefile b/mail/qconfirm/Makefile
index 4ff81c87d141..84c5f75a7222 100644
--- a/mail/qconfirm/Makefile
+++ b/mail/qconfirm/Makefile
@@ -17,6 +17,12 @@ ALL_TARGET= default
OPTIONS_DEFINE= DOCS
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
do-configure:
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
@${ECHO_CMD} "${CC} ${LDFLAGS}" > ${WRKSRC}/src/conf-ld