From 3932f9e2fbbf9ccd11e4c9874341e65e4edd998a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 14 Oct 2001 11:09:29 +0000 Subject: 2001-10-14 Roland McGrath * devio.c (real_speed_to_bogus_speed): Handle B57600, B115200 if they are defined. Reported by Diego Roversi . --- term/devio.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'term/devio.c') diff --git a/term/devio.c b/term/devio.c index ac5b50ed..e638c568 100644 --- a/term/devio.c +++ b/term/devio.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995,96,98,99,2000 Free Software Foundation, Inc. + Copyright (C) 1995,96,98,99,2000,01 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -169,6 +169,16 @@ real_speed_to_bogus_speed (int rspeed, int *bspeed) case 38400: *bspeed = EXTB; break; +#ifdef B57600 + case 57600: + *bspeed = B57600; + break; +#endif +#ifdef B115200 + case 115200: + *bspeed = B115200; + break; +#endif default: return -1; } -- cgit v1.2.3