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>