-diff -ru glibc-2.2.3.org/sysdeps/unix/sysv/linux/speed.c glibc-2.2.3/sysdeps/unix/sysv/linux/speed.c
---- glibc-2.2.3.org/sysdeps/unix/sysv/linux/speed.c Tue Jan 4 17:12:05 2000
-+++ glibc-2.2.3/sysdeps/unix/sysv/linux/speed.c Thu May 31 13:48:43 2001
+diff -u -r1.10 -r1.11
+--- libc/sysdeps/unix/sysv/linux/speed.c 2001/06/01 08:09:12 1.10
++++ libc/sysdeps/unix/sysv/linux/speed.c 2001/06/14 00:21:42 1.11
@@ -60,7 +60,7 @@
speed_t speed;
{
if ((speed & ~CBAUD) != 0
-- && (speed < B57600 || speed > B460800))
-+ && (speed < B57600 || speed > B4000000))
+- && (speed < B57600 || speed > B4000000))
++ && (speed < B57600 || speed > __MAX_BAUD))
{
__set_errno (EINVAL);
return -1;
speed_t speed;
{
if ((speed & ~CBAUD) != 0
-- && (speed < B57600 || speed > B460800))
-+ && (speed < B57600 || speed > B4000000))
+- && (speed < B57600 || speed > B4000000))
++ && (speed < B57600 || speed > __MAX_BAUD))
{
__set_errno (EINVAL);
return -1;
+diff -u -r1.3 -r1.4
+--- libc/sysdeps/unix/sysv/linux/alpha/bits/termios.h 1999/01/19 12:20:04 1.3
++++ libc/sysdeps/unix/sysv/linux/alpha/bits/termios.h 2001/06/14 00:21:01 1.4
+@@ -150,6 +150,8 @@
+ #define B3500000 00035
+ #define B4000000 00036
+
++#define __MAX_BAUD B4000000
++
+ #define CSIZE 00001400
+ #define CS5 00000000
+ #define CS6 00000400
+diff -u -r1.6 -r1.7
+--- libc/sysdeps/unix/sysv/linux/bits/termios.h 1999/01/19 12:22:44 1.6
++++ libc/sysdeps/unix/sysv/linux/bits/termios.h 2001/06/14 00:21:00 1.7
+@@ -165,6 +165,7 @@
+ #define B3000000 0010015
+ #define B3500000 0010016
+ #define B4000000 0010017
++#define __MAX_BAUD B4000000
+ #ifdef __USE_MISC
+ # define CIBAUD 002003600000 /* input baud rate (not used) */
+ # define CRTSCTS 020000000000 /* flow control */
+diff -u -r1.4 -r1.5
+--- libc/sysdeps/unix/sysv/linux/mips/bits/termios.h 2000/02/08 13:41:37 1.4
++++ libc/sysdeps/unix/sysv/linux/mips/bits/termios.h 2001/06/14 00:21:01 1.5
+@@ -214,6 +214,7 @@
+ # define B3000000 0010015
+ # define B3500000 0010016
+ # define B4000000 0010017
++# define __MAX_BAUD B4000000
+ # define CIBAUD 002003600000 /* input baud rate (not used) */
+ # define CRTSCTS 020000000000 /* flow control */
+ #endif
+diff -u -r1.5 -r1.7
+--- libc/sysdeps/unix/sysv/linux/powerpc/bits/termios.h 1999/10/29 20:23:15 1.5
++++ libc/sysdeps/unix/sysv/linux/powerpc/bits/termios.h 2001/06/14 00:21:02 1.7
+@@ -154,6 +151,7 @@
+ #define B3000000 00034
+ #define B3500000 00035
+ #define B4000000 00036
++#define __MAX_BAUD B4000000
+
+ #define CSIZE 00001400
+ #define CS5 00000000
+diff -u -r1.7 -r1.8
+--- libc/sysdeps/unix/sysv/linux/sparc/bits/termios.h 2000/02/17 18:35:47 1.7
++++ libc/sysdeps/unix/sysv/linux/sparc/bits/termios.h 2001/06/14 00:21:03 1.8
+@@ -156,6 +156,7 @@
+ #define B1152000 0x0000100d
+ #define B1500000 0x0000100e
+ #define B2000000 0x0000100f
++#define __MAX_BAUD B2000000
+
+ #define CIBAUD 0x100f0000 /* input baud rate (not used) */
+ #define CMSPAR 0x40000000 /* mark or space (stick) parity */