diff options
author | James McKenzie <root@ka-ata-killa.panaceas.james.local> | 2024-08-18 00:28:35 +0100 |
---|---|---|
committer | James McKenzie <root@ka-ata-killa.panaceas.james.local> | 2024-08-18 00:28:35 +0100 |
commit | d1685befb8a504e6434aa772517c81548a075a76 (patch) | |
tree | f19f45332a023e3bcccbb0ffd5ce5cc69698625f | |
parent | 5d21843f9f776eb912e29de69dcf89b62c8347f0 (diff) | |
download | sympathy-d1685befb8a504e6434aa772517c81548a075a76.tar.gz sympathy-d1685befb8a504e6434aa772517c81548a075a76.tar.bz2 sympathy-d1685befb8a504e6434aa772517c81548a075a76.zip |
-rw-r--r-- | src/tty.c | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -174,6 +174,18 @@ speed_t_to_baud (speed_t s) case B230400: return 230400; #endif +#ifdef B1152000 + case B1152000: + return 1152000; +#endif +#ifdef B1500000 + case B1500000: + return 1500000; +#endif +#ifdef B4000000 + case B4000000: + return 4000000; +#endif } return -1; @@ -260,6 +272,18 @@ baud_to_speed_t (int baud) case 230400: return B230400; #endif +#ifdef B1152000 + case 1152000: + return B1152000; +#endif +#ifdef B1500000 + case 1500000: + return B1500000; +#endif +#ifdef B4000000 + case 4000000: + return B4000000; +#endif } return -1; } |