aboutsummaryrefslogblamecommitdiffstats
path: root/community/firefox/fix-webrtc-glibcisms.patch
blob: 7533d94b91e00103b03beb797dc1c24c6514629f (plain) (tree)
1
2
3
4
5
6
7
8

                                                                                                                           
                 


                               
                          
                                        


                      








                                                  
--- ./third_party/libwebrtc/webrtc/system_wrappers/source/cpu_features_linux.c.orig	2018-05-09 23:48:44.677389171 +0200
+++ ./third_party/libwebrtc/webrtc/system_wrappers/source/cpu_features_linux.c	2018-05-09 23:48:56.254373557 +0200
@@ -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