mirror of
https://github.com/apple/container.git
synced 2026-09-21 07:05:57 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user