0001-thirdparty-libbacktrace-backtrace-h-include-config.h.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From 36ff87a927092b4d62c587736d7684dea9c82e63 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Mon, 19 Jul 2021 08:27:48 +0200
  4. Subject: [PATCH] thirdparty/libbacktrace/backtrace/h: include config.h
  5. Build on musl is broken since version 10.0 because the include on
  6. config.h was removed by
  7. https://github.com/apitrace/apitrace/commit/1544abf59d68d74977b8b692bea4d7468d65547b:
  8. In file included from /home/buildroot/autobuild/instance-3/output-1/build/apitrace-10.0/thirdparty/libbacktrace/testlib.c:40:
  9. /home/buildroot/autobuild/instance-3/output-1/build/apitrace-10.0/thirdparty/libbacktrace/backtrace.h:53:10: fatal error: gstdint.h: No such file or directory
  10. 53 | #include "gstdint.h"
  11. | ^~~~~~~~~~~
  12. Fixes:
  13. - http://autobuild.buildroot.org/results/a10793d01efa3a1533ba37aa845b9ac2bb1dfb6b
  14. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  15. [Upstream status: not needed
  16. (https://github.com/apitrace/apitrace/issues/755)]
  17. ---
  18. thirdparty/libbacktrace/backtrace.h | 2 ++
  19. 1 file changed, 2 insertions(+)
  20. diff --git a/thirdparty/libbacktrace/backtrace.h b/thirdparty/libbacktrace/backtrace.h
  21. index 2814763f..ab7679a0 100644
  22. --- a/thirdparty/libbacktrace/backtrace.h
  23. +++ b/thirdparty/libbacktrace/backtrace.h
  24. @@ -33,6 +33,8 @@ POSSIBILITY OF SUCH DAMAGE. */
  25. #ifndef BACKTRACE_H
  26. #define BACKTRACE_H
  27. +#include "config.h"
  28. +
  29. #include <stddef.h>
  30. #include <stdio.h>
  31. --
  32. 2.30.2