From: Alex O'Connell Date: Thu, 1 Aug 2024 16:53:46 +0000 (-0400) Subject: Build: Only include execinfo.h on linux systems that support it (llama/8783) X-Git-Tag: upstream/0.0.1642~474 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=77e79cdfa37ee64e77a345ac9ff63ce590c87fdb;p=pkg%2Fggml%2Fsources%2Fggml Build: Only include execinfo.h on linux systems that support it (llama/8783) * Only enable backtrace on GLIBC linux systems * fix missing file from copy * use glibc macro instead of defining a custom one --- diff --git a/src/ggml.c b/src/ggml.c index c7c71453..06ffe990 100644 --- a/src/ggml.c +++ b/src/ggml.c @@ -188,7 +188,7 @@ static void ggml_print_backtrace_symbols(void) { fprintf(stderr, "%d: %p %s\n", idx, addr, symbol); } } -#elif defined(__linux__) +#elif defined(__linux__) && defined(__GLIBC__) #include static void ggml_print_backtrace_symbols(void) { void * trace[100];