get TIOCGWINSZ from <sys/ioctl.h>

Eric Blake ebb9@byu.net
Wed Dec 6 13:26:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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@byu.net>

	* include/sys/ioctl.h: Pick up termios.h, for TIOCGWINSZ.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFdsT684KuGfSFAYARAiJSAKCEzDXdOwAFzVAQ4u5NcOnGg/IG+QCePQYh
XL+447Fbaq1/CovSiaHWdvY=
=mB+V
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin.patch4
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20061206/b5cd4769/attachment.ksh>


More information about the Cygwin-patches mailing list