Skip to content

Commit 4a7aebd

Browse files
authored
Port to Android (apple#14)
1 parent 7830202 commit 4a7aebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/ArgumentParser/Parsable Types/ParsableArguments.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
#if os(Linux)
12+
#if canImport(Glibc)
1313
import Glibc
1414
let _exit: (Int32) -> Never = Glibc.exit
1515
#else

Sources/ArgumentParser/Usage/HelpGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ internal extension ParsableCommand {
247247
}
248248
}
249249

250-
#if os(Linux)
250+
#if canImport(Glibc)
251251
import Glibc
252252
func ioctl(_ a: Int32, _ b: Int32, _ p: UnsafeMutableRawPointer) -> Int32 {
253253
ioctl(CInt(a), UInt(b), p)

0 commit comments

Comments
 (0)