From 5db65c30862385cb14be7b8cb57d50aa55fa7f82 Mon Sep 17 00:00:00 2001 From: Guillaume Lessard Date: Tue, 28 Jul 2026 10:27:25 -0700 Subject: [PATCH] Add an explicit import Necessary to use `timespec` in Swift 6 mode. --- Sources/System/IORing/RawIORequest.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/System/IORing/RawIORequest.swift b/Sources/System/IORing/RawIORequest.swift index 1de6013..40156dd 100644 --- a/Sources/System/IORing/RawIORequest.swift +++ b/Sources/System/IORing/RawIORequest.swift @@ -2,7 +2,12 @@ #if os(Linux) import CSystem - +#if canImport(Glibc) +import Glibc +#elseif canImport(Musl) +import Musl +#endif + @usableFromInline internal struct RawIORequest: ~Copyable { // swift_io_uring_sqe is a typedef of io_uring_sqe on platforms where