Skip to content

Commit aba57c5

Browse files
gmittertaciidgh
authored andcommitted
Make TerminalController compile on Windows
1 parent 2806308 commit aba57c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Basic/TerminalController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public final class TerminalController {
115115
// Following code does not compile on ppc64le well. TIOCGWINSZ is
116116
// defined in system ioctl.h file which needs to be used. This is
117117
// a temporary arrangement and needs to be fixed.
118-
#if !arch(powerpc64le)
118+
#if !(arch(powerpc64le) || os(Windows))
119119
var ws = winsize()
120120
if ioctl(1, UInt(TIOCGWINSZ), &ws) == 0 {
121121
return Int(ws.ws_col)

0 commit comments

Comments
 (0)