void-packages/srcpkgs/mariadb/patches/musl_ucontext-h.patch

12 lines
443 B
Diff
Raw Normal View History

2016-02-08 08:04:09 +01:00
--- ./include/my_context.h.orig 2016-02-24 09:25:21.000000000 -0500
+++ ./include/my_context.h 2016-02-28 15:14:29.098180308 -0500
@@ -31,7 +31,7 @@
#define MY_CONTEXT_USE_X86_64_GCC_ASM
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
#define MY_CONTEXT_USE_I386_GCC_ASM
-#elif defined(HAVE_UCONTEXT_H)
+#elif defined (__GLIBC__) && defined(HAVE_UCONTEXT_H)
#define MY_CONTEXT_USE_UCONTEXT
#else
#define MY_CONTEXT_DISABLE