Add more compat code for non GNU environments
[oweals/busybox.git] / libbb / speed_table.c
index 646f9146b73082da63583313e46e0305dffb3321..af676e1ebe01e240a867770e7135dfbf2caa483e 100644 (file)
@@ -7,7 +7,6 @@
  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
  */
 
-#include <termios.h>
 #include "libbb.h"
 
 struct speed_map {
@@ -52,6 +51,9 @@ static const struct speed_map speeds[] = {
 #ifdef B460800
        {B460800, 460800/256 + 0x8000U},
 #endif
+#ifdef B921600
+       {B921600, 921600/256 + 0x8000U},
+#endif
 };
 
 enum { NUM_SPEEDS = ARRAY_SIZE(speeds) };
@@ -94,7 +96,7 @@ int main(void)
        unsigned long v;
        speed_t s;
 
-       for (v = 0 ; v < 500000; v++) {
+       for (v = 0 ; v < 1000000; v++) {
                s = tty_value_to_baud(v);
                if (s == (speed_t) -1) {
                        continue;