Skip to content

Commit 9583a75

Browse files
committed
Fix tests compilation on Linux
1 parent 56435cf commit 9583a75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/JSONLoggerTests/Helpers/FileHandleHelper.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ extension FileHandle {
4343

4444

4545
struct Errno : Error {
46+
#if canImport(Darwin)
4647
var err: errno_t
48+
#else
49+
var err: Int32
50+
#endif
4751
init() {
4852
self.err = errno
4953
}

0 commit comments

Comments
 (0)