This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Problem installing Prolog
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 24 Aug 2003 21:48:18 +0200
- Subject: Re: Problem installing Prolog
- References: <Law11-F79ZS2TRqf69a00076c45@hotmail.com>
- Reply-to: cygwin at cygwin dot com
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:cygwin@cygwin.com
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/