Skip to content

Commit

Permalink
Fix build using static linux sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Oct 1, 2024
1 parent c87c30f commit c48a7d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Sources/DeviceInput/FileHandle+Grab.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
internal import CInput
internal import SystemPackage

#if os(Linux)
#if canImport(Darwin)
internal import Darwin
#elseif canImport(Glibc)
internal import Glibc
#elseif canImport(Musl)
internal import Musl
#elseif os(Windows)
internal import ucrt
#else
#error("Unknown platform")
#endif

// Results in errno if i == -1
Expand Down

0 comments on commit c48a7d9

Please sign in to comment.