From 58ef731b25e94664792e4655f268460930670777 Mon Sep 17 00:00:00 2001 From: Guang1234567 Date: Mon, 16 Aug 2021 11:05:47 +0800 Subject: [PATCH] [android] support android. --- Sources/CommandExecutor.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CommandExecutor.swift b/Sources/CommandExecutor.swift index aa57386..983e8eb 100644 --- a/Sources/CommandExecutor.swift +++ b/Sources/CommandExecutor.swift @@ -3,13 +3,13 @@ import Foundation typealias ExecutorReturnValue = (status: Int, standardOutput: String, standardError: String) enum STDLIB { - #if os(Linux) + #if os(Linux) || os(Android) typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t #else typealias _posix_spawn_file_actions_t = posix_spawn_file_actions_t? #endif - #if os(Linux) + #if os(Linux) || os(Android) static func _make_posix_spawn_file_actions_t() -> _posix_spawn_file_actions_t { posix_spawn_file_actions_t() }