Skip to content

Commit 10021cf

Browse files
authored
Merge pull request #238 from compnerd/228
TSCUtility: repair the windows build after #228
2 parents ea06517 + 14dc088 commit 10021cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/TSCUtility/FSWatch.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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)
9999
extension FSWatch._WatcherDelegate: NoOpWatcherDelegate {}
100100
extension 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

115115
public protocol NoOpWatcherDelegate {
116116
func pathsDidReceiveEvent(_ paths: [AbsolutePath])

0 commit comments

Comments
 (0)