Skip to content

Commit 9b3d73f

Browse files
committed
fix linux build
1 parent 015ba24 commit 9b3d73f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/System/FileLock.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,10 @@ extension FileDescriptor {
361361
if waitUntilTimeout {
362362
#if os(Linux)
363363
preconditionFailure("`waitUntilTimeout` unavailable on Linux")
364-
#endif
364+
cmd = .setOFDLock
365+
#else
365366
cmd = .setOFDLockWaitTimout
367+
#endif
366368
} else if wait {
367369
cmd = .setOFDLockWait
368370
} else {

0 commit comments

Comments
 (0)