From 06608e5c15b9432eea1a8b1a34e933e2fc93da72 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 13 Aug 2018 10:13:22 -0400 Subject: [PATCH] Add conditional import --- Sources/SpelledPitch/SpelledPitch.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/SpelledPitch/SpelledPitch.swift b/Sources/SpelledPitch/SpelledPitch.swift index 1028f790..f057e003 100644 --- a/Sources/SpelledPitch/SpelledPitch.swift +++ b/Sources/SpelledPitch/SpelledPitch.swift @@ -6,7 +6,13 @@ // // -import Darwin +#if os(Linux) + import Glibc +#else + import Darwin.C +#endif + + import Pitch public struct SpelledPitch {