This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

get TIOCGWINSZ from <sys/ioctl.h>


-----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-----
Index: cygwin/include/sys/ioctl.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/sys/ioctl.h,v
retrieving revision 1.8
diff -u -p -r1.8 ioctl.h
--- cygwin/include/sys/ioctl.h	12 Aug 2005 02:39:13 -0000	1.8
+++ cygwin/include/sys/ioctl.h	6 Dec 2006 13:22:02 -0000
@@ -1,6 +1,6 @@
 /* sys/ioctl.h
 
-   Copyright 1998, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
+   Copyright 1998, 2001, 2002, 2003, 2004, 2005, 2006 Red Hat, Inc.
 
 This file is part of Cygwin.
 
@@ -14,6 +14,7 @@ details. */
 #define _SYS_IOCTL_H
 
 #include <sys/cdefs.h>
+#include <sys/termios.h>
 
 __BEGIN_DECLS
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]