Linux: make `Epoll` available on Android (#1621)

Android is sufficiently Linux-esque that it should be able to use `Epoll`.
This commit is contained in:
Saleem Abdulrasool 2020-08-18 00:05:31 -07:00 committed by GitHub
parent a0f6a48ec0
commit cf6f2b1807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
// only on Linux, or things that have Linux-specific extensions. // only on Linux, or things that have Linux-specific extensions.
import CNIOLinux import CNIOLinux
#if os(Linux) #if os(Linux) || os(Android)
internal enum TimerFd { internal enum TimerFd {
public static let TFD_CLOEXEC = CNIOLinux.TFD_CLOEXEC public static let TFD_CLOEXEC = CNIOLinux.TFD_CLOEXEC
public static let TFD_NONBLOCK = CNIOLinux.TFD_NONBLOCK public static let TFD_NONBLOCK = CNIOLinux.TFD_NONBLOCK