aboutsummaryrefslogtreecommitdiffstats
path: root/main/gc/uclibc-getcontext.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/gc/uclibc-getcontext.patch')
-rw-r--r--main/gc/uclibc-getcontext.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/gc/uclibc-getcontext.patch b/main/gc/uclibc-getcontext.patch
new file mode 100644
index 0000000000..de48fc0183
--- /dev/null
+++ b/main/gc/uclibc-getcontext.patch
@@ -0,0 +1,11 @@
+--- ./mach_dep.c.orig
++++ ./mach_dep.c
+@@ -175,7 +175,7 @@
+ # if defined(HAVE_PUSH_REGS)
+ GC_push_regs();
+ # elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32) && \
+- !defined(HURD)
++ !defined(HURD) && !defined(__UCLIBC__)
+ /* Older versions of Darwin seem to lack getcontext(). */
+ /* ARM Linux often doesn't support a real getcontext(). */
+ ucontext_t ctxt;