git: f295903414cc - main - x11/xdg-desktop-portal-wlr: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Sep 2023 10:27:02 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=f295903414ccab16e75feb05c851d726deb16713
commit f295903414ccab16e75feb05c851d726deb16713
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-09-02 07:40:13 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-03 10:26:52 +0000
x11/xdg-desktop-portal-wlr: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
x11/xdg-desktop-portal-wlr/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/x11/xdg-desktop-portal-wlr/Makefile b/x11/xdg-desktop-portal-wlr/Makefile
index b04c0496e766..11b6bbe2aad4 100644
--- a/x11/xdg-desktop-portal-wlr/Makefile
+++ b/x11/xdg-desktop-portal-wlr/Makefile
@@ -47,6 +47,12 @@ MANPAGES_PLIST_FILES= man/man5/${PORTNAME}.5.gz
SLURP_DESC= Simple output chooser
SLURP_RUN_DEPENDS= slurp:x11/slurp
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400097
+CFLAGS+= -D__BSD_VISIBLE -D__XSI_VISIBLE
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \
${WRKSRC}/${PORTNAME}.5.scd