summaryrefslogtreecommitdiffstats
path: root/ttyutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'ttyutils.c')
-rw-r--r--ttyutils.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/ttyutils.c b/ttyutils.c
index 5b7cdcf..584371b 100644
--- a/ttyutils.c
+++ b/ttyutils.c
@@ -5,8 +5,8 @@
#include <fcntl.h>
#include <signal.h>
-#include "pathnames.h"
#include "ttyutils.h"
+#include "pathnames.h"
static struct speed_struct {
int user_speed;
@@ -20,6 +20,18 @@ static struct speed_struct {
{9600, B9600},
{19200, B19200},
{38400, B38400},
+#ifdef B57600
+ {57600, B57600},
+#endif
+#ifdef B115200
+ {115200, B115200},
+#endif
+#ifdef B230400
+ {230400, B230400},
+#endif
+#ifdef B460800
+ {460800, B460800},
+#endif
{-1, B0}
};