From 77e37ff98bec1ccf6af6edf3efcad26b54da0c47 Mon Sep 17 00:00:00 2001 From: Damien George Date: Tue, 31 May 2016 15:25:40 +0100 Subject: [PATCH] py/mpthread: Include mpstate.h when defining GIL macros. --- py/mpthread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/py/mpthread.h b/py/mpthread.h index 7f8d4dec7c..04d4f19684 100644 --- a/py/mpthread.h +++ b/py/mpthread.h @@ -50,6 +50,7 @@ void mp_thread_mutex_unlock(mp_thread_mutex_t *mutex); #endif // MICROPY_PY_THREAD #if MICROPY_PY_THREAD && MICROPY_PY_THREAD_GIL +#include "py/mpstate.h" #define MP_THREAD_GIL_ENTER() mp_thread_mutex_lock(&MP_STATE_VM(gil_mutex), 1) #define MP_THREAD_GIL_EXIT() mp_thread_mutex_unlock(&MP_STATE_VM(gil_mutex)) #else