Evidently Travis build termios.h does not pull in sys/ioctl.h

but my initial test system did.
This commit is contained in:
Charles Blake
2016-09-01 14:08:40 -04:00
parent d65589fe27
commit 7b39545eb3

View File

@@ -263,7 +263,7 @@ proc tcGetSid*(fd: cint): Pid {.importc: "tcgetsid", header: "<termios.h>".}
# Window size ioctl. Should work on on any Unix that xterm has been ported to.
var TIOCGWINSZ*{.importc, header: "<sys/ioctl.h>".}: culong
type IOctl_WinSize* {.importc: "struct winsize", header: "<termios.h>",
type IOctl_WinSize* {.importc: "struct winsize", header: "<sys/ioctl.h>",
final, pure.} = object
ws_row*, ws_col*, ws_xpixel*, ws_ypixel*: cushort