From 14b946dd9b9ef9b2a1b6b19f702532fc067fc5ff Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Wed, 19 Jul 2023 20:52:29 +0200 Subject: [PATCH] editors/led: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- editors/led/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editors/led/Makefile b/editors/led/Makefile index f7175e4e55169..d869259dcea6b 100644 --- a/editors/led/Makefile +++ b/editors/led/Makefile @@ -17,6 +17,12 @@ MAKE_JOBS_UNSAFE= yes SUB_FILES= pkg-message +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-patch: @${REINPLACE_CMD} -E 's,(bin|lib|data)dir),DESTDIR)$$(&,' \ ${WRKSRC}/Makefile.in