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 {
47
47
self . paths = paths
48
48
self . latency = latency
49
49
50
- #if os(OpenBSD)
50
+ #if os(OpenBSD) || os(Windows)
51
51
self . _watcher = NoOpWatcher ( paths: paths, latency: latency, delegate: _WatcherDelegate ( block: block) )
52
52
#elseif canImport(Glibc)
53
53
var ipaths : [ AbsolutePath : Inotify . WatchOptions ] = [ : ]
@@ -95,7 +95,7 @@ private protocol _FileWatcher {
95
95
func stop( )
96
96
}
97
97
98
- #if os(OpenBSD)
98
+ #if os(OpenBSD) || os(Windows)
99
99
extension FSWatch . _WatcherDelegate : NoOpWatcherDelegate { }
100
100
extension NoOpWatcher : _FileWatcher { }
101
101
#elseif canImport(Glibc)
@@ -110,7 +110,7 @@ extension FSEventStream: _FileWatcher{}
110
110
111
111
// MARK:- inotify
112
112
113
- #if os(OpenBSD)
113
+ #if os(OpenBSD) || os(Windows)
114
114
115
115
public protocol NoOpWatcherDelegate {
116
116
func pathsDidReceiveEvent( _ paths: [ AbsolutePath ] )
You can’t perform that action at this time.
0 commit comments