6 Dec 2006 14:26
get TIOCGWINSZ from <sys/ioctl.h>
Eric Blake <ebb9 <at> byu.net>
2006-12-06 13:26:19 GMT
2006-12-06 13:26:19 GMT
On Linux: $ gcc -E - <<\EOF | tail -n 2 > #include<sys/ioctl.h> > TIOCGWINSZ > EOF # 2 "<stdin>" 2 0x5413 On cygwin, prior to this patch: $ gcc -E - <<\EOF | tail -n 2 > #include<sys/ioctl.h> > TIOCGWINSZ > EOF # 2 "<stdin>" 2 TIOCGWINSZ Should be safe to apply since neither TIOCGWINSZ nor <sys/ioctl.h> are specified by POSIX, so we don't have to worry about namespace pollution. 2006-12-06 Eric Blake <ebb9 <at> byu.net> * include/sys/ioctl.h: Pick up termios.h, for TIOCGWINSZ. -- Life is short - so eat dessert first! Eric Blake ebb9 <at> byu.net
(Continue reading)
RSS Feed