Skip to content

Commit

Permalink
Fix for cross compile
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneenders committed Jul 24, 2024
1 parent 8668e42 commit 49b9b91
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Sources/ChromaShell/Terminal/Terminal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@

import Foundation

#if os(Linux)
import Glibc
#else
#if os(macOS) || os(iOS)
import Darwin
#elseif canImport(Glibc)
import Glibc
#elseif canImport(Musl)
import Musl
#endif

/// Sets up the Terminal to be in raw mode so we receive the key commands as
Expand Down

0 comments on commit 49b9b91

Please sign in to comment.