On Sun, Aug 24, 2003 at 02:16:04PM +0000, Antonio j wrote: > Hi all > > I've been trying to install Prolog on cygwin.
*Which* prolog? > Using the full source of prolog I am said 'sys/strops.h not found'. I have > not that file. Sounds like SWI-Prolog. If so, just apply this patch: --- pl-xterm.c.ORIG 2003-08-24 21:46:55.021995500 +0200 +++ pl-xterm.c 2003-08-24 19:27:32.989549300 +0200 @@ -45,7 +45,9 @@ portability problems for users of the si #include <unistd.h> #include <fcntl.h> #include <string.h> +#ifndef __CYGWIN__ #include <sys/stropts.h> +#endif #include <termios.h> #include <signal.h> @@ -150,8 +152,10 @@ pl_open_xterm(term_t title, term_t in, t unlockpt(master); slavename = ptsname(master); slave = open(slavename, O_RDWR); +#ifndef __CYGWIN__ ioctl(slave, I_PUSH, "ptem"); ioctl(slave, I_PUSH, "ldterm"); +#endif tcgetattr(slave, &termio); termio.c_lflag &= ~ECHO; Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/