git: 20f7e4fc4ffe - main - x11/xdg-desktop-portal-hyprland: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Sep 2023 10:27:01 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=20f7e4fc4ffea55d684fa19ae600867927415075
commit 20f7e4fc4ffea55d684fa19ae600867927415075
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-09-02 05:57:23 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-09-03 10:26:52 +0000
x11/xdg-desktop-portal-hyprland: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
x11/xdg-desktop-portal-hyprland/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/x11/xdg-desktop-portal-hyprland/Makefile b/x11/xdg-desktop-portal-hyprland/Makefile
index 6032e95f7e6a..2f33fe1a3d01 100644
--- a/x11/xdg-desktop-portal-hyprland/Makefile
+++ b/x11/xdg-desktop-portal-hyprland/Makefile
@@ -50,6 +50,12 @@ OPTIONS_DEFAULT=SLURP
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
+
.ifdef GH_TUPLE
post-configure:
@${REINPLACE_CMD} 's/meson install/& \