summaryrefslogtreecommitdiff
path: root/mysys/my_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_context.c')
-rw-r--r--mysys/my_context.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/mysys/my_context.c b/mysys/my_context.c
index 2a710458670..4d9f1a1a12f 100644
--- a/mysys/my_context.c
+++ b/mysys/my_context.c
@@ -724,3 +724,37 @@ my_context_continue(struct my_context *c)
}
#endif /* MY_CONTEXT_USE_WIN32_FIBERS */
+
+#ifdef MY_CONTEXT_DISABLE
+int
+my_context_continue(struct my_context *c)
+{
+ return -1;
+}
+
+
+int
+my_context_spawn(struct my_context *c, void (*f)(void *), void *d)
+{
+ return -1;
+}
+
+
+int
+my_context_yield(struct my_context *c)
+{
+ return -1;
+}
+
+int
+my_context_init(struct my_context *c, size_t stack_size)
+{
+ return -1; /* Out of memory */
+}
+
+void
+my_context_destroy(struct my_context *c)
+{
+}
+
+#endif