]> Savannah Git Hosting - gnulib.git/commitdiff
openpty: Avoid compilation error on AIX 6.1.
authorBruno Haible <bruno@clisp.org>
Fri, 21 Oct 2011 00:12:02 +0000 (02:12 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 21 Oct 2011 00:12:02 +0000 (02:12 +0200)
* lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.

ChangeLog
lib/pty.in.h

index cbb2f2fbb7d504236222bd3faca71bc9c1ef98c8..0f0b5a39fef7e2eb91c833a7c7bb0172318bf304 100644 (file)
--- 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.
index bba4ba1a63241bec11e33f542beddc47c364fcce..aff989c79d5ce4f82489243a0400b9f73cc5d03b 100644 (file)
@@ -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.  */