fix-webrtc-glibcisms.patch 605 B

123456789101112131415161718192021
  1. --- a/third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc
  2. +++ b/third_party/libwebrtc/system_wrappers/source/cpu_features_linux.cc
  3. @@ -18,7 +18,7 @@
  4. #define WEBRTC_GLIBC_PREREQ(a, b) 0
  5. #endif
  6. -#if WEBRTC_GLIBC_PREREQ(2, 16)
  7. +#if !__GLIBC__ || WEBRTC_GLIBC_PREREQ(2, 16)
  8. #include <sys/auxv.h>
  9. #else
  10. #include <errno.h>
  11. @@ -40,7 +40,7 @@
  12. int architecture = 0;
  13. uint64_t hwcap = 0;
  14. const char* platform = NULL;
  15. -#if WEBRTC_GLIBC_PREREQ(2, 16)
  16. +#if !__GLIBC__ || WEBRTC_GLIBC_PREREQ(2, 16)
  17. hwcap = getauxval(AT_HWCAP);
  18. platform = (const char*)getauxval(AT_PLATFORM);
  19. #else