Files
tubestation/third_party/pipewire/00-pipewire-dont-include-conf-header.patch
Jan Grulich e21461b7b8 Bug 1953080 - Workaround broken build with PipeWire 1.4 r=pehrsons
PipeWire 1.4 includes math.h inside an extern "C" block, which breaks
including the header from C++. This is because we end up including
throw_gcc.h from memory/mozalloc, but we won't have _LIBCPP_VERSION
defined. Workaround for this  issue is not to include <pipewire/conf.h>
from the main <pipewire/pipewire.h> header, as this leads to inclusion
of <spa/json-core.h> where the math.h header is used. We don't currently
need this in Firefox anyway.

Differential Revision: https://phabricator.services.mozilla.com/D244888
2025-04-28 08:46:20 +00:00

13 lines
349 B
Diff

diff --git a/pipewire/pipewire.h b/pipewire/pipewire.h
index 0c495ed..870f2f1 100644
--- a/pipewire/pipewire.h
+++ b/pipewire/pipewire.h
@@ -13,7 +13,6 @@ extern "C" {
#include <pipewire/array.h>
#include <pipewire/client.h>
-#include <pipewire/conf.h>
#include <pipewire/context.h>
#include <pipewire/device.h>
#include <pipewire/buffers.h>