[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: openpty on mingw
From: |
Bruno Haible |
Subject: |
Re: openpty on mingw |
Date: |
Thu, 10 Nov 2011 02:15:31 +0100 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Eric Blake wrote:
> --- a/lib/pty.in.h
> +++ b/lib/pty.in.h
> @@ -45,6 +45,11 @@
> #if defined _AIX
> # include <sys/ioctl.h>
> #endif
> +/* Mingw lacks 'struct termios' and 'struct winsize', but a forward
> + declaration of an opaque type is sufficient to allow compilation of
> + a stub openpty(). */
> +struct termios;
> +struct winsize;
>
This is still not enough to ensure successful compilation on mingw. I get
this error:
gcc-3 -mno-cygwin -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1
-I/usr/local/mingw/include -Wall -g -O2 -MT openpty.o -MD -MP -MF
.deps/openpty.Tpo -c -o openpty.o openpty.c
In file included from openpty.c:20:
./pty.h:45:21: termios.h: No such file or directory
make[4]: *** [openpty.o] Error 1
Likewise on MSVC 9.
To reproduce: use
$ ./gnulib-tool --create-testdir --dir=/tmp/testdir \
--with-tests --with-c++-tests --single-configure \
--avoid=pt_chown openpty ptsname_r
Bruno
--
In memoriam Robert Blum <http://en.wikipedia.org/wiki/Robert_Blum>