void-packages/srcpkgs/libreoffice/files/skia-no-execinfo.patch

26 lines
736 B
Diff

--- a/tools/gpu/vk/VkTestUtils.cpp
+++ b/tools/gpu/vk/VkTestUtils.cpp
@@ -26,7 +26,9 @@
#include <algorithm>
#if defined(SK_BUILD_FOR_UNIX)
-#include <execinfo.h>
+ #if !defined(__linux__) || defined(__GLIBC__)
+ #include <execinfo.h>
+ #endif
#endif
#include "include/gpu/vk/GrVkBackendContext.h"
#include "include/gpu/vk/GrVkExtensions.h"
@@ -104,9 +106,11 @@ static int should_include_debug_layer(co
static void print_backtrace() {
#if defined(SK_BUILD_FOR_UNIX)
+ #if !defined(__linux__) || defined(__GLIBC__)
void* stack[64];
int count = backtrace(stack, SK_ARRAY_COUNT(stack));
backtrace_symbols_fd(stack, count, 2);
+ #endif
#else
// Please add implementations for other platforms.
#endif