summaryrefslogtreecommitdiffstatshomepage
path: root/unix/modtermios.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-09 21:49:09 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-09 21:49:09 +0200
commitce936edf62484bf46205eac48cdfb9b7b28a64b9 (patch)
treeab9d82c756346c11974f5352a0ac0c31be9e17d3 /unix/modtermios.c
parentd4a874b81e29008713e9de2dd623e62c9f2aa5dc (diff)
downloadmicropython-ce936edf62484bf46205eac48cdfb9b7b28a64b9.tar.gz
micropython-ce936edf62484bf46205eac48cdfb9b7b28a64b9.zip
unix/modtermios: Provide B57600 and B115200 constants only if defined.
Diffstat (limited to 'unix/modtermios.c')
-rw-r--r--unix/modtermios.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/modtermios.c b/unix/modtermios.c
index a70edf5bf4..94074e1d00 100644
--- a/unix/modtermios.c
+++ b/unix/modtermios.c
@@ -136,8 +136,12 @@ STATIC const mp_rom_map_elem_t mp_module_termios_globals_table[] = {
C(TCSANOW),
C(B9600),
+ #ifdef B57600
C(B57600),
+ #endif
+ #ifdef B115200
C(B115200),
+ #endif
#undef C
};