From b6e5b48d351215292aef8f2c43aefd00809e79b9 Mon Sep 17 00:00:00 2001 From: Nils Hjelte Date: Tue, 3 Oct 2023 19:47:41 +0200 Subject: [PATCH] Fix non-mac build (#10) --- Sources/LanguageClient/RestartingServer.swift | 5 +++++ 1 file changed, 5 insertions(+) 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