changeset 15978:da5b835b2356

openpty: Avoid compilation error on AIX 6.1. * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
author Bruno Haible <bruno@clisp.org>
date Fri, 21 Oct 2011 02:12:02 +0200
parents db47007b5984
children 69cc1dcd696b
files ChangeLog lib/pty.in.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-10-20  Bruno Haible  <bruno@clisp.org>
+
+	openpty: Avoid compilation error on AIX 6.1.
+	* lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
+
 2011-10-20  Bruno Haible  <bruno@clisp.org>
 
 	posix_openpt: Support for OpenBSD.
--- a/lib/pty.in.h
+++ b/lib/pty.in.h
@@ -42,6 +42,9 @@
 
 /* Get 'struct termios' and 'struct winsize'.  */
 #include <termios.h>
+#if defined _AIX
+# include <sys/ioctl.h>
+#endif
 
 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */