X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.IO%2FKeventWatcher.cs;h=8078964da30ea9f5e252b24e710e5131ea7de5b5;hb=1639e26a6b22a59d0bfb8ad564530eeff593e4a3;hp=5cc8a377356c8313510316d60479b2cb2f5dc31f;hpb=ac49990f3df05abb9639b0a5a9be2b26572340ad;p=mono.git diff --git a/mcs/class/System/System.IO/KeventWatcher.cs b/mcs/class/System/System.IO/KeventWatcher.cs index 5cc8a377356..8078964da30 100644 --- a/mcs/class/System/System.IO/KeventWatcher.cs +++ b/mcs/class/System/System.IO/KeventWatcher.cs @@ -150,7 +150,7 @@ namespace System.IO { [StructLayout(LayoutKind.Sequential)] struct timespec { public IntPtr tv_sec; - public IntPtr tv_usec; + public IntPtr tv_nsec; } class PathData @@ -313,7 +313,7 @@ namespace System.IO { Scan (fullPathNoLastSlash, false, ref initialFds); - var immediate_timeout = new timespec { tv_sec = (IntPtr)0, tv_usec = (IntPtr)0 }; + var immediate_timeout = new timespec { tv_sec = (IntPtr)0, tv_nsec = (IntPtr)0 }; var eventBuffer = new kevent[0]; // we don't want to take any events from the queue at this point var changes = CreateChangeList (ref initialFds);