Skip to content

Commit 2122fd8

Browse files
authored
Import Android instead for NIOEmbedded (#3033)
Pull #3030 invokes C APIs that aren't in the extremely limited Bionic module, so import the much larger Android overlay instead. This [just broke my daily Android CI](https://github.com/finagolfin/swift-android-sdk/actions/runs/12389744616/job/34583381415#step:19:239).
1 parent d73d862 commit 2122fd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/NIOEmbedded/Embedded.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import Darwin
2828
import Glibc
2929
#elseif canImport(Musl)
3030
import Musl
31-
#elseif canImport(Bionic)
32-
import Bionic
31+
#elseif canImport(Android)
32+
import Android
3333
#elseif canImport(WASILibc)
3434
import WASILibc
3535
#else
@@ -130,7 +130,7 @@ public final class EmbeddedEventLoop: EventLoop, CustomStringConvertible {
130130

131131
public let description = "EmbeddedEventLoop"
132132

133-
#if canImport(Darwin) || canImport(Glibc) || canImport(Musl) || canImport(Bionic)
133+
#if canImport(Darwin) || canImport(Glibc) || canImport(Musl) || canImport(Android)
134134
private let myThread: pthread_t = pthread_self()
135135

136136
func isCorrectThread() -> Bool {

0 commit comments

Comments
 (0)