Skip to content

Commit 0eeab1c

Browse files
committed
make the plugin compile
1 parent c151138 commit 0eeab1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Plugins/AWSLambdaPackager/PluginUtils.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ struct Utils {
3030
print("\(executable.absoluteString) \(arguments.joined(separator: " "))")
3131
}
3232

33+
#if compiler(>=6.0) && compiler(<6.1) && os(Linux)
34+
let fd = dup(1)!
35+
#else
3336
let fd = dup(1)
37+
#endif
3438
let stdout = fdopen(fd, "rw")
3539
defer { fclose(stdout) }
3640

0 commit comments

Comments
 (0)