Skip to content

Commit c3f2163

Browse files
committed
Fix platform-specific missing bits
1 parent d64048d commit c3f2163

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/Testing/ExitTests/ExitTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ extension ExitTest {
679679
Environment.setVariable(nil, named: name)
680680

681681
var fd: CInt?
682-
#if SWT_TARGET_OS_APPLE || os(Linux) || os(FreeBSD) || os(OpenBSD)
682+
#if SWT_TARGET_OS_APPLE || os(Linux) || os(FreeBSD) || os(OpenBSD) || os(Android)
683683
fd = CInt(environmentVariable)
684684
#elseif os(Windows)
685685
if let handle = UInt(environmentVariable).flatMap(HANDLE.init(bitPattern:)) {

Sources/Testing/ExitTests/SpawnProcess.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func spawnExecutable(
8888
}
8989
#endif
9090

91-
#if SWT_TARGET_OS_APPLE || os(Linux) || os(FreeBSD) || os(OpenBSD)
91+
#if SWT_TARGET_OS_APPLE || os(Linux) || os(FreeBSD) || os(OpenBSD) || os(Android)
9292
return try withUnsafeTemporaryAllocation(of: P<posix_spawn_file_actions_t>.self, capacity: 1) { fileActions in
9393
let fileActionsInitialized = posix_spawn_file_actions_init(fileActions.baseAddress!)
9494
let fileActions = asArgument(fileActions)

0 commit comments

Comments
 (0)