]> git.eshelyaron.com Git - emacs.git/commit
Fix portability issue with make-serial-process
authorKen Brown <kbrown@cornell.edu>
Mon, 12 Jul 2021 13:24:12 +0000 (09:24 -0400)
committerKen Brown <kbrown@cornell.edu>
Tue, 13 Jul 2021 13:02:45 +0000 (09:02 -0400)
commita41f585bf111b239601ca7d915994fed600852af
tree8e5791db4cbd0877e1cb18ce468114cfe6e7fb42
parentd672d576ff6c3ac3c7ee1fa4db13c7e0a4974aa3
Fix portability issue with make-serial-process

* src/sysdep.c (struct speed_struct): New struct.
(speeds): New static array of struct speed_struct.
(convert_speed): New static function to convert a numerical baud
rate (e.g., 9600) to a Bnnn constant defined in termios.h (e.g.,
B9600).
(serial_configure): Use convert_speed to make the call to cfsetspeed
compliant with its advertised API.  (Bug#49524)
src/sysdep.c