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 <k_baldauf@apple.com>
This commit is contained in:
Kathryn Baldauf
2025-10-24 16:48:25 -07:00
committed by GitHub
parent a27fefbb59
commit 41eda106e3
+1 -8
View File
@@ -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)