diff --git a/lib/posix/termios.nim b/lib/posix/termios.nim index f8de740d76..1fbccba9c8 100644 --- a/lib/posix/termios.nim +++ b/lib/posix/termios.nim @@ -263,7 +263,7 @@ proc tcGetSid*(fd: cint): Pid {.importc: "tcgetsid", header: "".} # Window size ioctl. Should work on on any Unix that xterm has been ported to. var TIOCGWINSZ*{.importc, header: "".}: culong -type IOctl_WinSize* {.importc: "struct winsize", header: "", +type IOctl_WinSize* {.importc: "struct winsize", header: "", final, pure.} = object ws_row*, ws_col*, ws_xpixel*, ws_ypixel*: cushort