void-packages/srcpkgs/ghdl/patches/musl.patch
John f2bd3d4ee1 ghdl: add musl patch
Closes: #11380 [via git-merge-pr]
2019-05-09 16:43:10 +02:00

11 lines
345 B
Diff

--- src/grt/config/jumps.c 2019-03-03 09:38:19.000000000 +0100
+++ - 2019-04-29 12:58:54.717203690 +0200
@@ -29,7 +29,7 @@
#include <signal.h>
#include <fcntl.h>
-#if defined (__linux__) || defined (__APPLE__)
+#if defined (__linux__) && defined(__GLIBC__) || defined (__APPLE__)
#define HAVE_BACKTRACE 1
#include <sys/ucontext.h>
#endif