diff options
Diffstat (limited to 'unix/modtermios.c')
-rw-r--r-- | unix/modtermios.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/unix/modtermios.c b/unix/modtermios.c index 38be729e22..2cb5f26df5 100644 --- a/unix/modtermios.c +++ b/unix/modtermios.c @@ -29,13 +29,9 @@ #include <unistd.h> #include <errno.h> -#include "py/nlr.h" #include "py/objlist.h" #include "py/runtime.h" - -#define RAISE_ERRNO(err_flag, error_val) \ - { if (err_flag == -1) \ - { nlr_raise(mp_obj_new_exception_arg1(&mp_type_OSError, MP_OBJ_NEW_SMALL_INT(error_val))); } } +#include "py/mphal.h" STATIC mp_obj_t mod_termios_tcgetattr(mp_obj_t fd_in) { struct termios term; @@ -151,6 +147,5 @@ STATIC MP_DEFINE_CONST_DICT(mp_module_termios_globals, mp_module_termios_globals const mp_obj_module_t mp_module_termios = { .base = { &mp_type_module }, - .name = MP_QSTR_termios, .globals = (mp_obj_dict_t*)&mp_module_termios_globals, }; |