Skip to content

Commit 7e4bb7f

Browse files
committed
Fix errors
1 parent 670997c commit 7e4bb7f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/Testing/ExitTests/SpawnProcess.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ func spawnExecutable(
7474
) throws -> ProcessID {
7575
// Darwin and Linux differ in their optionality for the posix_spawn types we
7676
// use, so use this typealias to paper over the differences.
77-
#if SWT_TARGET_OS_APPLE || os(FreeBSD) || os(OpenBSD)
77+
#if SWT_TARGET_OS_APPLE || os(FreeBSD) || os(OpenBSD) || os(Android)
7878
typealias P<T> = T?
79-
#elseif os(Linux) || os(Android)
79+
#elseif os(Linux)
8080
typealias P<T> = T
8181
#endif
8282

Sources/_TestingInternals/include/Stubs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ static char *_Nullable *_Null_unspecified swt_environ(void) {
126126
}
127127
#endif
128128

129-
#if !defined(__ANDROID__)
130129
#if __has_include(<signal.h>) && defined(si_pid)
131130
/// Get the value of the `si_pid` field of a `siginfo_t` structure.
132131
///
@@ -150,7 +149,6 @@ static int swt_siginfo_t_si_status(const siginfo_t *siginfo) {
150149
return siginfo->si_status;
151150
}
152151
#endif
153-
#endif
154152

155153
/// Get the value of `EEXIST`.
156154
///

0 commit comments

Comments
 (0)