Skip to content

Commit 44b5458

Browse files
committed
Fix for unix build
1 parent b0b3c78 commit 44b5458

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extmod/moduasyncio.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@
2828
#include "py/smallint.h"
2929
#include "py/pairheap.h"
3030
#include "py/mphal.h"
31+
32+
#if 0 // causes error for unix build
3133
#include "shared-bindings/supervisor/__init__.h"
34+
#else
35+
extern mp_obj_t supervisor_ticks_ms(void);
36+
#endif
3237

3338
#if MICROPY_PY_UASYNCIO
3439

0 commit comments

Comments
 (0)