--- origsrc/expect5.45/pty_termios.c 2010-08-27 16:51:53.000000000 -0500 +++ src/expect5.45/pty_termios.c 2013-03-18 15:34:39.233085300 -0500 @@ -77,6 +77,10 @@ with openpty which supports 4000 while p #include #endif +#ifdef HAVE_OPENPTY +#include +#endif + #ifdef HAVE_PTYTRAP #include #endif