void-packages/srcpkgs/icecat/patches/fix-webrtc-glibcisms.patch
Jürgen Buchmüller 7cec629479 icecat: update to 68.6.1
One has to roll hew own tarball with the IceCat 68 branch.
There are no official release tarballs anymore as it seems.
https://git.savannah.gnu.org/cgit/gnuzilla.git/log/?h=68

The result of me running ./makeicecat is available on my
https://distfiles.voidlinux.de site. It should perhaps be moved
to voidlinux.org distfiles.
2020-04-06 17:36:00 +02:00

21 lines
686 B
Diff

--- media/webrtc/trunk/webrtc/system_wrappers/source/cpu_features_linux.c.orig 2019-01-29 11:20:52.298793223 +0100
+++ media/webrtc/trunk/webrtc/system_wrappers/source/cpu_features_linux.c 2019-01-29 11:21:48.250250850 +0100
@@ -14,7 +14,7 @@
#ifndef __GLIBC_PREREQ
#define __GLIBC_PREREQ(a, b) 0
#endif
-#if __GLIBC_PREREQ(2, 16)
+#if !__GLIBC__ || __GLIBC_PREREQ(2, 16)
#include <sys/auxv.h>
#else
#include <fcntl.h>
@@ -32,7 +32,7 @@
int architecture = 0;
unsigned long hwcap = 0;
const char* platform = NULL;
-#if __GLIBC_PREREQ(2, 16)
+#if !__GLIBC__ || __GLIBC_PREREQ(2, 16)
hwcap = getauxval(AT_HWCAP);
platform = (const char*)getauxval(AT_PLATFORM);
#else