Skip to content

Commit be1a5bc

Browse files
authored
Merge pull request #90 from tkrajacic/add-musl-support
Add support for Musl and Bionic for static cross compilation
2 parents 4a74372 + 326b74d commit be1a5bc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Sources/Citadel/Exec/Server/ExecHandler.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ import NIOFoundationCompat
1919
import NIOPosix
2020
import NIOSSH
2121

22-
#if os(Linux)
23-
import Glibc
24-
#else
22+
#if canImport(Darwin)
2523
import Darwin
24+
#elseif canImport(Glibc)
25+
import Glibc
26+
#elseif canImport(Musl)
27+
import Musl
28+
#elseif canImport(Bionic)
29+
import Bionic
2630
#endif
2731

2832
enum SSHServerError: Error {

0 commit comments

Comments
 (0)