diff options
Diffstat (limited to 'ports/unix/modtermios.c')
| -rw-r--r-- | ports/unix/modtermios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/unix/modtermios.c b/ports/unix/modtermios.c index 4f9751e27..8a79bc3a5 100644 --- a/ports/unix/modtermios.c +++ b/ports/unix/modtermios.c @@ -24,6 +24,8 @@ * THE SOFTWARE. */ +#if MICROPY_PY_TERMIOS + #include <sys/types.h> #include <termios.h> #include <unistd.h> @@ -33,8 +35,6 @@ #include "py/runtime.h" #include "py/mphal.h" -#if MICROPY_PY_TERMIOS - STATIC mp_obj_t mod_termios_tcgetattr(mp_obj_t fd_in) { struct termios term; int fd = mp_obj_get_int(fd_in); |
