Author: spouliot
Date: 2007-05-01 13:25:38 -0400 (Tue, 01 May 2007)
New Revision: 76535
Modified:
trunk/mcs/class/System/System.IO.Ports/ChangeLog
trunk/mcs/class/System/System.IO.Ports/WinSerialStream.cs
Log:
2007-05-01 Sebastien Pouliot <[EMAIL PROTECTED]>
* WinSerialStream.cs: Fix build due to NativeOverlapped being updated
to 2.0 definition (int to IntPtr).
Modified: trunk/mcs/class/System/System.IO.Ports/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.IO.Ports/ChangeLog 2007-05-01 17:11:54 UTC
(rev 76534)
+++ trunk/mcs/class/System/System.IO.Ports/ChangeLog 2007-05-01 17:25:38 UTC
(rev 76535)
@@ -1,4 +1,8 @@
+2007-05-01 Sebastien Pouliot <[EMAIL PROTECTED]>
+ * WinSerialStream.cs: Fix build due to NativeOverlapped being updated
+ to 2.0 definition (int to IntPtr).
+
Wed Apr 11 15:40:55 CEST 2007 Paolo Molaro <[EMAIL PROTECTED]>
* WinSerialStream.cs: fixed logic for signal value check (bug #81342).
Modified: trunk/mcs/class/System/System.IO.Ports/WinSerialStream.cs
===================================================================
--- trunk/mcs/class/System/System.IO.Ports/WinSerialStream.cs 2007-05-01
17:11:54 UTC (rev 76534)
+++ trunk/mcs/class/System/System.IO.Ports/WinSerialStream.cs 2007-05-01
17:25:38 UTC (rev 76535)
@@ -102,13 +102,21 @@
// Init overlapped structures
NativeOverlapped wo = new NativeOverlapped ();
write_event = new ManualResetEvent (false);
+#if NET_2_0
+ wo.EventHandle = write_event.Handle;
+#else
wo.EventHandle = (int) write_event.Handle;
+#endif
write_overlapped = Marshal.AllocHGlobal (Marshal.SizeOf
(typeof (NativeOverlapped)));
Marshal.StructureToPtr (wo, write_overlapped, true);
NativeOverlapped ro = new NativeOverlapped ();
read_event = new ManualResetEvent (false);
+#if NET_2_0
+ ro.EventHandle = read_event.Handle;
+#else
ro.EventHandle = (int) read_event.Handle;
+#endif
read_overlapped = Marshal.AllocHGlobal (Marshal.SizeOf
(typeof (NativeOverlapped)));
Marshal.StructureToPtr (ro, read_overlapped, true);
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches