From 881b85e9df0d0a1e22a35f66b01eec26d85b3632 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Mon, 5 Jul 2021 13:06:44 +0300 Subject: [PATCH] x11/xdg-desktop-portal-wlr: unbreak build with PipeWire 0.3.31 PipeWire 0.3.31 update (ports ea3170c51fd4) cb6dbd1 made public API incompatible with consumers using _POSIX_SOURCE, _POSIX_C_SOURCE or _XOPEN_SOURCE: isn't standalone but depends on BSD-specific types which are hidden when POSIX compliance is requested. xdg-desktop-portal-wlr passes -D_POSIX_C_SOURCE=200809L via meson.build which works for its own code and all other dependencies. Unhide these types by passing __BSD_VISIBLE in CFLAGS until updated PipeWire hits the ports tree. In file included from ../src/core/main.c:7: In file included from /usr/local/include/pipewire-0.3/pipewire/pipewire.h:35: In file included from /usr/local/include/pipewire-0.3/pipewire/client.h:35: In file included from /usr/local/include/pipewire-0.3/pipewire/proxy.h:108: In file included from /usr/local/include/pipewire-0.3/pipewire/protocol.h:48: In file included from /usr/local/include/pipewire-0.3/pipewire/utils.h:34: In file included from /usr/include/sys/mount.h:38: /usr/include/sys/ucred.h:99:2: error: unknown type name 'u_int' u_int cr_version; /* structure layout version */ ^ In file included from ../src/core/main.c:7: In file included from /usr/local/include/pipewire-0.3/pipewire/pipewire.h:35: In file included from /usr/local/include/pipewire-0.3/pipewire/client.h:35: In file included from /usr/local/include/pipewire-0.3/pipewire/proxy.h:108: In file included from /usr/local/include/pipewire-0.3/pipewire/protocol.h:48: In file included from /usr/local/include/pipewire-0.3/pipewire/utils.h:34: PR: 256970 Reported by: Jan Beich --- x11/xdg-desktop-portal-wlr/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/x11/xdg-desktop-portal-wlr/Makefile b/x11/xdg-desktop-portal-wlr/Makefile index 034de13b2991..9c65be8abda5 100644 --- a/x11/xdg-desktop-portal-wlr/Makefile +++ b/x11/xdg-desktop-portal-wlr/Makefile @@ -16,6 +16,7 @@ LIB_DEPENDS= libbasu.so:devel/basu \ libwayland-client.so:graphics/wayland \ libpipewire-0.3.so:multimedia/pipewire +CFLAGS+= -D__BSD_VISIBLE=1 USES= compiler:c11 meson pkgconfig USE_GITHUB= yes GH_ACCOUNT= emersion -- 2.32.0