From 3bd9d0269f2d90cdf30fe0cab2347acefa61bb68 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 31 Mar 2024 18:31:14 +1100 Subject: [PATCH] add FileDescriptorRepresentable conformance to FileDescriptor --- Sources/IORing/FileHandle.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/IORing/FileHandle.swift b/Sources/IORing/FileHandle.swift index 174b243..ac7330a 100644 --- a/Sources/IORing/FileHandle.swift +++ b/Sources/IORing/FileHandle.swift @@ -71,3 +71,7 @@ extension FileHandle: Hashable { _fileDescriptor.hash(into: &hasher) } } + +extension FileDescriptor: FileDescriptorRepresentable { + public var fileDescriptor: CInt { rawValue } +}