Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Sources/TSCBasic/Process/Process.swift
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,9 @@ public final class Process {
return stdinPipe.fileHandleForWriting
#elseif (!canImport(Darwin) || os(macOS))
// Initialize the spawn attributes.
#if canImport(Darwin) || os(Android) || os(OpenBSD) || os(FreeBSD)
#if os(Android)
var attributes: posix_spawnattr_t! = nil
#elseif canImport(Darwin) || os(OpenBSD) || os(FreeBSD)
var attributes: posix_spawnattr_t? = nil
#else
var attributes = posix_spawnattr_t()
Expand Down Expand Up @@ -671,7 +673,9 @@ public final class Process {
posix_spawnattr_setflags(&attributes, Int16(flags))

// Setup the file actions.
#if canImport(Darwin) || os(Android) || os(OpenBSD) || os(FreeBSD)
#if os(Android)
var fileActions: posix_spawn_file_actions_t! = nil
#elseif canImport(Darwin) || os(OpenBSD) || os(FreeBSD)
var fileActions: posix_spawn_file_actions_t? = nil
#else
var fileActions = posix_spawn_file_actions_t()
Expand Down