Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2023 10:27:08 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: d7c830340dbb - main - x11/swayimg: Fix build with llvm16
Message-ID:  <202309031027.383AR8Y5097404@gitrepo.freebsd.org>

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

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

commit d7c830340dbb2e33451d3ad36ea5a707d0d222b6
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-09-02 15:44:39 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-03 10:26:53 +0000

    x11/swayimg: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 x11/swayimg/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/x11/swayimg/Makefile b/x11/swayimg/Makefile
index a81d7e09f0cb..66f38439f841 100644
--- a/x11/swayimg/Makefile
+++ b/x11/swayimg/Makefile
@@ -78,6 +78,12 @@ WEBP_MESON_ENABLED=	webp
 ZSH_MESON_ENABLED=	zsh
 ZSH_PLIST_FILES=	share/zsh/site-functions/_${PORTNAME}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097
+CFLAGS+=	-D__BSD_VISIBLE -D__XSI_VISIBLE
+.endif
+
 post-patch:
 # Respect PREFIX for system-wide config
 	@${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \



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