summaryrefslogtreecommitdiff
path: root/repo/apps/firefox/fix-webrtc-glibcisms.patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-25 22:50:03 +0100
committerdavidovski <david@davidovski.xyz>2022-05-25 22:50:03 +0100
commit7b0628f037dcbf85cfb381d5e05dea39a2059d33 (patch)
tree4a534ef861d19cdf5235b504af5be2a5d0becb71 /repo/apps/firefox/fix-webrtc-glibcisms.patch
parent79062a39e9bcb9731adbacd0bd9bcd0b59d19d0a (diff)
fixed various broken dependencies
Diffstat (limited to 'repo/apps/firefox/fix-webrtc-glibcisms.patch')
-rw-r--r--repo/apps/firefox/fix-webrtc-glibcisms.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/repo/apps/firefox/fix-webrtc-glibcisms.patch b/repo/apps/firefox/fix-webrtc-glibcisms.patch
new file mode 100644
index 0000000..4f9043b
--- /dev/null
+++ b/repo/apps/firefox/fix-webrtc-glibcisms.patch
@@ -0,0 +1,20 @@
+--- a/third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc
++++ b/third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc
+@@ -18,7 +18,7 @@
+ #define WEBRTC_GLIBC_PREREQ(a, b) 0
+ #endif
+
+-#if WEBRTC_GLIBC_PREREQ(2, 16)
++#if !__GLIBC__ || WEBRTC_GLIBC_PREREQ(2, 16)
+ #include <sys/auxv.h>
+ #else
+ #include <errno.h>
+@@ -40,7 +40,7 @@
+ int architecture = 0;
+ uint64_t hwcap = 0;
+ const char* platform = NULL;
+-#if WEBRTC_GLIBC_PREREQ(2, 16)
++#if !__GLIBC__ || WEBRTC_GLIBC_PREREQ(2, 16)
+ hwcap = getauxval(AT_HWCAP);
+ platform = (const char*)getauxval(AT_PLATFORM);
+ #else