blob: daf2432a5425dbae25da991fd6d4276ee7c19f67 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001From b658bdb38b7ff6a78915fd0ac390fc224e4006cb Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 26 Mar 2017 14:30:33 -0700
4Subject: [PATCH] disable ucontext on musl
5
6musl does not have *contex() APIs even though it has ucontext.h header
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
Brad Bishop19323692019-04-05 15:28:33 -04009
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010---
11 include/my_context.h | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/include/my_context.h b/include/my_context.h
Brad Bishop19323692019-04-05 15:28:33 -040015index ea0e3496..4c9b37dc 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016--- a/include/my_context.h
17+++ b/include/my_context.h
18@@ -31,7 +31,7 @@
19 #define MY_CONTEXT_USE_X86_64_GCC_ASM
20 #elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
21 #define MY_CONTEXT_USE_I386_GCC_ASM
22-#elif defined(HAVE_UCONTEXT_H)
23+#elif defined(__GLIBC__) && defined(HAVE_UCONTEXT_H)
24 #define MY_CONTEXT_USE_UCONTEXT
25 #else
26 #define MY_CONTEXT_DISABLE