2
1

0001-src-Exceptions.cpp-check-if-execinfo-header-is-avail.patch 993 B

123456789101112131415161718192021222324252627282930313233
  1. From e18e48624cd45910917e5e4fb0aa16cef490bb6d Mon Sep 17 00:00:00 2001
  2. From: Bartosz Bilas <b.bilas@grinn-global.com>
  3. Date: Sun, 22 Mar 2020 14:25:53 +0100
  4. Subject: [PATCH] src/Exceptions.cpp: check if execinfo header is available
  5. Fixes:
  6. fatal error: execinfo.h: No such file or directory
  7. compilation terminated.
  8. Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
  9. ---
  10. Upstream status: https://github.com/cegui/cegui/pull/1189
  11. cegui/src/Exceptions.cpp | 2 ++
  12. 1 file changed, 2 insertions(+)
  13. diff --git a/cegui/src/Exceptions.cpp b/cegui/src/Exceptions.cpp
  14. index 8e4890378..6a8420491 100644
  15. --- a/cegui/src/Exceptions.cpp
  16. +++ b/cegui/src/Exceptions.cpp
  17. @@ -46,7 +46,9 @@
  18. #elif (defined(__linux__) && !defined(__ANDROID__)) \
  19. || defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) \
  20. || defined(__HAIKU__)
  21. +#ifdef HAVE_EXECINFO_H
  22. # include <execinfo.h>
  23. +#endif
  24. # include <dlfcn.h>
  25. # include <cxxabi.h>
  26. # include <cstddef>
  27. --
  28. 2.25.2