patch-xbmc_platform_linux_threads_ThreadImplLinux_cpp 815 B

123456789101112131415161718192021222324252627282930313233
  1. uclibc-ng has gettid()
  2. --- xbmc-22.0b1-Piers.orig/xbmc/platform/linux/threads/ThreadImplLinux.cpp 2026-06-21 09:53:12.000000000 +0200
  3. +++ xbmc-22.0b1-Piers/xbmc/platform/linux/threads/ThreadImplLinux.cpp 2026-07-26 01:19:27.442381623 +0200
  4. @@ -18,12 +18,6 @@
  5. #include <sys/resource.h>
  6. #include <unistd.h>
  7. -#if !defined(TARGET_ANDROID) && (defined(__GLIBC__) || defined(__UCLIBC__))
  8. -#if defined(__UCLIBC__) || !__GLIBC_PREREQ(2, 30)
  9. -#include <sys/syscall.h>
  10. -#endif
  11. -#endif
  12. -
  13. namespace
  14. {
  15. @@ -52,15 +46,6 @@ constexpr int ThreadPriorityToNativePrio
  16. }
  17. }
  18. -#if !defined(TARGET_ANDROID) && (defined(__GLIBC__) || defined(__UCLIBC__))
  19. -#if defined(__UCLIBC__) || !__GLIBC_PREREQ(2, 30)
  20. -static pid_t gettid()
  21. -{
  22. - return syscall(__NR_gettid);
  23. -}
  24. -#endif
  25. -#endif
  26. -
  27. std::once_flag flag;
  28. } // namespace