summary refs log tree commit diff stats
path: root/lib/posix/termios.nim
diff options
context:
space:
mode:
authorCharles Blake <cb@cblake.net>2016-09-01 14:08:40 -0400
committerCharles Blake <cb@cblake.net>2016-09-01 14:08:40 -0400
commit7b39545eb3cdb2ab21fc7fdff31567a75824cb43 (patch)
tree80c45ece1091299eace289972554a001e35e92cc /lib/posix/termios.nim
parentd65589fe27c68e7e928c027898acd01cbed58d89 (diff)
downloadNim-7b39545eb3cdb2ab21fc7fdff31567a75824cb43.tar.gz
Evidently Travis build termios.h does not pull in sys/ioctl.h
but my initial test system did.
Diffstat (limited to 'lib/posix/termios.nim')
-rw-r--r--lib/posix/termios.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/posix/termios.nim b/lib/posix/termios.nim
index f8de740d7..1fbccba9c 100644
--- a/lib/posix/termios.nim
+++ b/lib/posix/termios.nim
@@ -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