0001-dlsym-Fix-build-under-uClibc.patch 855 B

12345678910111213141516171819202122232425262728293031
  1. From 189a3b8397c61ba262a2221885e38dc514c59d94 Mon Sep 17 00:00:00 2001
  2. From: Paul Cercueil <paul@crapouillou.net>
  3. Date: Sat, 7 Dec 2019 00:00:57 +0100
  4. Subject: [PATCH] dlsym: Fix build under uClibc
  5. uClibc defines the __GLIBC__ macro too (I know, right?), so verify that
  6. __UCLIBC__ is not defined before we can use glibc-specific internal
  7. functions.
  8. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  9. Upstream: https://github.com/apitrace/apitrace/commit/189a3b8397c61ba262a2221885e38dc514c59d94
  10. ---
  11. wrappers/dlsym.cpp | 2 +-
  12. 1 file changed, 1 insertion(+), 1 deletion(-)
  13. diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp
  14. index 2eda082a..5ab8465b 100644
  15. --- a/wrappers/dlsym.cpp
  16. +++ b/wrappers/dlsym.cpp
  17. @@ -34,7 +34,7 @@
  18. #include "os.hpp"
  19. -#ifdef __GLIBC__
  20. +#if defined(__GLIBC__) && !defined(__UCLIBC__)
  21. #include <dlfcn.h>
  22. --
  23. 2.24.0