From 41eda106e3eafe49bd6ba16747fc2509065f2928 Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Fri, 24 Oct 2025 16:48:25 -0700 Subject: [PATCH] Only load epoll file if we can import musl (#359) This class does not work for glibc due to missing flags and methods. This PR removes the ability to load the `Epoll` class when using glibc for now. Signed-off-by: Kathryn Baldauf --- Sources/ContainerizationOS/Linux/Epoll.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Sources/ContainerizationOS/Linux/Epoll.swift b/Sources/ContainerizationOS/Linux/Epoll.swift index 9a54ced9..92775723 100644 --- a/Sources/ContainerizationOS/Linux/Epoll.swift +++ b/Sources/ContainerizationOS/Linux/Epoll.swift @@ -14,15 +14,8 @@ // limitations under the License. //===----------------------------------------------------------------------===// -#if os(Linux) - #if canImport(Musl) import Musl -#elseif canImport(Glibc) -import Glibc -#else -#error("Epoll not supported on this platform") -#endif import Foundation import Synchronization @@ -185,4 +178,4 @@ extension Epoll.Mask { } } -#endif // os(Linux) +#endif // canImport(Musl)