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:
authorMiguel de Icaza <miguel@gnome.org>2008-12-17 20:56:25 +0300
committerMiguel de Icaza <miguel@gnome.org>2008-12-17 20:56:25 +0300
commit8e07acf772cccce591fe4d81dc56589d420f168b (patch)
treef6b59b6e389ecb11601d2b2e1b6d984016dd63ea /mcs/class/System/System.IO.Ports/SerialPort.cs
parent52ebdf367ed4ab787a073184701802bb2ea67151 (diff)
Multiple files:
Deals with the extension to Environment.OSVersion.Platform that might return a new value MacOSX (6) on .NET svn path=/trunk/mcs/; revision=121711
Diffstat (limited to 'mcs/class/System/System.IO.Ports/SerialPort.cs')
-rw-r--r--mcs/class/System/System.IO.Ports/SerialPort.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System/System.IO.Ports/SerialPort.cs b/mcs/class/System/System.IO.Ports/SerialPort.cs
index bddad6668d8..aa6bfc0ef67 100644
--- a/mcs/class/System/System.IO.Ports/SerialPort.cs
+++ b/mcs/class/System/System.IO.Ports/SerialPort.cs
@@ -520,7 +520,7 @@ namespace System.IO.Ports
List<string> serial_ports = new List<string>();
// Are we on Unix?
- if (p == 4 || p == 128) {
+ if (p == 4 || p == 128 || p == 6) {
string[] ttys = Directory.GetFiles("/dev/", "tty*");
foreach (string dev in ttys) {
if (dev.StartsWith("/dev/ttyS") || dev.StartsWith("/dev/ttyUSB"))