summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix/main.c b/unix/main.c
index c305c37283..9f787595d0 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -45,6 +45,7 @@
#include "py/gc.h"
#include "py/stackctrl.h"
#include "py/mphal.h"
+#include "extmod/misc.h"
#include "genhdr/mpversion.h"
#include "input.h"
@@ -61,7 +62,7 @@ long heap_size = 1024*1024 * (sizeof(mp_uint_t) / 4);
STATIC void stderr_print_strn(void *env, const char *str, size_t len) {
(void)env;
ssize_t dummy = write(STDERR_FILENO, str, len);
- mp_hal_dupterm_tx_strn(str, len);
+ mp_uos_dupterm_tx_strn(str, len);
(void)dummy;
}