From ab27b789e470e9923ccbc8c2adf88e3047c224b4 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 17 Jul 2021 13:10:55 -0500 Subject: [PATCH] Fix minimal build. --- src/core/state.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/state.h b/src/core/state.h index f6671bc9..c048464f 100644 --- a/src/core/state.h +++ b/src/core/state.h @@ -54,11 +54,13 @@ typedef struct { int is_error; } JanetTimeout; +#ifdef JANET_THREADS typedef struct { JanetMailbox *original; JanetMailbox *newbox; uint64_t flags; } JanetMailboxPair; +#endif struct JanetVM { /* Top level dynamic bindings */ @@ -121,7 +123,7 @@ struct JanetVM { JanetTraversalNode *traversal_base; /* Threading */ -#ifndef JANET_SINGLE_THREADED +#ifdef JANET_THREADS JanetMailbox *mailbox; JanetThread *thread_current; JanetTable *thread_decode;