diff --git a/Sources/LanguageClient/RestartingServer.swift b/Sources/LanguageClient/RestartingServer.swift index 205852c..9191698 100644 --- a/Sources/LanguageClient/RestartingServer.swift +++ b/Sources/LanguageClient/RestartingServer.swift @@ -3,6 +3,11 @@ import Foundation import OSLog #endif +#if !(os(macOS) || os(iOS) || os(tvOS)) +/* nanoseconds per second */ +let NSEC_PER_SEC: UInt64 = 1000000000 +#endif + import Semaphore import LanguageServerProtocol