1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-28 19:19:53 +00:00

Fix minimal build.

This commit is contained in:
Calvin Rose 2021-07-17 13:10:55 -05:00
parent 3a1a59f1eb
commit ab27b789e4

View File

@ -54,11 +54,13 @@ typedef struct {
int is_error; int is_error;
} JanetTimeout; } JanetTimeout;
#ifdef JANET_THREADS
typedef struct { typedef struct {
JanetMailbox *original; JanetMailbox *original;
JanetMailbox *newbox; JanetMailbox *newbox;
uint64_t flags; uint64_t flags;
} JanetMailboxPair; } JanetMailboxPair;
#endif
struct JanetVM { struct JanetVM {
/* Top level dynamic bindings */ /* Top level dynamic bindings */
@ -121,7 +123,7 @@ struct JanetVM {
JanetTraversalNode *traversal_base; JanetTraversalNode *traversal_base;
/* Threading */ /* Threading */
#ifndef JANET_SINGLE_THREADED #ifdef JANET_THREADS
JanetMailbox *mailbox; JanetMailbox *mailbox;
JanetThread *thread_current; JanetThread *thread_current;
JanetTable *thread_decode; JanetTable *thread_decode;