Commit ce936edf authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent d4a874b8
...@@ -136,8 +136,12 @@ STATIC const mp_rom_map_elem_t mp_module_termios_globals_table[] = { ...@@ -136,8 +136,12 @@ STATIC const mp_rom_map_elem_t mp_module_termios_globals_table[] = {
C(TCSANOW), C(TCSANOW),
C(B9600), C(B9600),
#ifdef B57600
C(B57600), C(B57600),
#endif
#ifdef B115200
C(B115200), C(B115200),
#endif
#undef C #undef C
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment