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

pull/1704/head
Paul Sokolovsky 2015-12-09 21:49:09 +02:00
rodzic d4a874b81e
commit ce936edf62
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

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