From 44b545850aea77592b5027ae83c90f4d1cb3cd8c Mon Sep 17 00:00:00 2001 From: Tsutomu IKEGAMI Date: Wed, 16 Feb 2022 23:00:45 +0900 Subject: [PATCH] Fix for unix build --- extmod/moduasyncio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extmod/moduasyncio.c b/extmod/moduasyncio.c index 185f76a3fe..617a157bba 100644 --- a/extmod/moduasyncio.c +++ b/extmod/moduasyncio.c @@ -28,7 +28,12 @@ #include "py/smallint.h" #include "py/pairheap.h" #include "py/mphal.h" + +#if 0 // causes error for unix build #include "shared-bindings/supervisor/__init__.h" +#else +extern mp_obj_t supervisor_ticks_ms(void); +#endif #if MICROPY_PY_UASYNCIO