File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public class FSWatch {
4747 self . paths = paths
4848 self . latency = latency
4949
50- #if os(OpenBSD)
50+ #if os(OpenBSD) || os(Windows)
5151 self . _watcher = NoOpWatcher ( paths: paths, latency: latency, delegate: _WatcherDelegate ( block: block) )
5252 #elseif canImport(Glibc)
5353 var ipaths : [ AbsolutePath : Inotify . WatchOptions ] = [ : ]
@@ -95,7 +95,7 @@ private protocol _FileWatcher {
9595 func stop( )
9696}
9797
98- #if os(OpenBSD)
98+ #if os(OpenBSD) || os(Windows)
9999extension FSWatch . _WatcherDelegate : NoOpWatcherDelegate { }
100100extension NoOpWatcher : _FileWatcher { }
101101#elseif canImport(Glibc)
@@ -110,7 +110,7 @@ extension FSEventStream: _FileWatcher{}
110110
111111// MARK:- inotify
112112
113- #if os(OpenBSD)
113+ #if os(OpenBSD) || os(Windows)
114114
115115public protocol NoOpWatcherDelegate {
116116 func pathsDidReceiveEvent( _ paths: [ AbsolutePath ] )
You can’t perform that action at this time.
0 commit comments