diff --git a/lib/system/threadlocalstorage.nim b/lib/system/threadlocalstorage.nim index eeef0ccf8..b8ffee721 100644 --- a/lib/system/threadlocalstorage.nim +++ b/lib/system/threadlocalstorage.nim @@ -209,6 +209,12 @@ type tls: ThreadLocalStorage else: nil + when hasSharedHeap: + next, prev: PGcThread + stackBottom, stackTop: pointer + stackSize: int + else: + nil when emulatedThreadVars: var globalsSlot: ThreadVarSlot