File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -626,7 +626,9 @@ public final class Process {
626626 return stdinPipe. fileHandleForWriting
627627 #elseif (!canImport(Darwin) || os(macOS))
628628 // Initialize the spawn attributes.
629- #if canImport(Darwin) || os(Android) || os(OpenBSD) || os(FreeBSD)
629+ #if os(Android)
630+ var attributes : posix_spawnattr_t ! = nil
631+ #elseif canImport(Darwin) || os(OpenBSD) || os(FreeBSD)
630632 var attributes : posix_spawnattr_t ? = nil
631633 #else
632634 var attributes = posix_spawnattr_t ( )
@@ -671,7 +673,9 @@ public final class Process {
671673 posix_spawnattr_setflags ( & attributes, Int16 ( flags) )
672674
673675 // Setup the file actions.
674- #if canImport(Darwin) || os(Android) || os(OpenBSD) || os(FreeBSD)
676+ #if os(Android)
677+ var fileActions : posix_spawn_file_actions_t ! = nil
678+ #elseif canImport(Darwin) || os(OpenBSD) || os(FreeBSD)
675679 var fileActions : posix_spawn_file_actions_t ? = nil
676680 #else
677681 var fileActions = posix_spawn_file_actions_t ( )
You can’t perform that action at this time.
0 commit comments