unix/modtermios: Provide B57600 and B115200 constants only if defined.

This commit is contained in:
Paul Sokolovsky 2015-12-09 21:49:09 +02:00
parent d4a874b81e
commit ce936edf62

View File

@ -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
};