Skip to content

Commit

Permalink
Import Android instead for NIOEmbedded (#3033)
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
finagolfin authored Dec 18, 2024
1 parent d73d862 commit 2122fd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/NIOEmbedded/Embedded.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import Darwin
import Glibc
#elseif canImport(Musl)
import Musl
#elseif canImport(Bionic)
import Bionic
#elseif canImport(Android)
import Android
#elseif canImport(WASILibc)
import WASILibc
#else
Expand Down Expand Up @@ -130,7 +130,7 @@ public final class EmbeddedEventLoop: EventLoop, CustomStringConvertible {

public let description = "EmbeddedEventLoop"

#if canImport(Darwin) || canImport(Glibc) || canImport(Musl) || canImport(Bionic)
#if canImport(Darwin) || canImport(Glibc) || canImport(Musl) || canImport(Android)
private let myThread: pthread_t = pthread_self()

func isCorrectThread() -> Bool {
Expand Down

0 comments on commit 2122fd8

Please sign in to comment.