Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>2010-02-23 14:48:41 +0300
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>2010-02-23 14:48:41 +0300
commit801acc9e68dd73898beb5e4bc377e8a3239ca39d (patch)
treef7c20002e58b90ce4e7c63f9e65e53e95d685e3f /support
parent5688d1dee457eb49537fdd466461f62aa1c36d44 (diff)
2010-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* serial.cs: Add 921600 to the list of possible baud rates, and use it only if defined, as is not available in all the unix systems. Fixes #445520. svn path=/trunk/mono/; revision=152262
Diffstat (limited to 'support')
-rw-r--r--support/ChangeLog6
-rw-r--r--support/serial.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index 72c2e9d134c..1eda6057a5a 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,9 @@
+2010-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * serial.cs: Add 921600 to the list of possible baud rates, and
+ use it only if defined, as is not available in all the unix systems.
+ Fixes #445520.
+
2010-01-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
* zlib-helper.c: no need for sync flush when compressing.
diff --git a/support/serial.c b/support/serial.c
index a8bd7dad436..7968fbb30d0 100644
--- a/support/serial.c
+++ b/support/serial.c
@@ -159,7 +159,12 @@ set_attributes (int fd, int baud_rate, MonoParity parity, int dataBits, MonoStop
/* setup baudrate */
switch (baud_rate)
{
-/*This is not defined on OSX and *BSD */
+/*Some values are not defined on OSX and *BSD */
+#if defined(B921600)
+ case 921600:
+ baud_rate = B921600;
+ break;
+#endif
#if defined(B460800)
case 460800:
baud_rate = B460800;