From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>,
"ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: PATCH: zpty for Cygwin
Date: Tue, 27 Jun 2000 11:20:27 +0400 [thread overview]
Message-ID: <000101bfe008$2b3bc200$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <000001bfe006$bc2cc720$21c9ca95@mow.siemens.ru>
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
>
> Cygwin is using SVR4-style ptys without STREAMS support. The attached
> patch makes it possible to compile zpty.c under Cygwin.
Sorry, I forgot to attach.
-andrej
[-- Attachment #2: zpty.diff --]
[-- Type: application/octet-stream, Size: 992 bytes --]
--- Src/Modules/zpty.c.org Wed May 17 07:42:44 2000
+++ Src/Modules/zpty.c Fri Jun 23 17:38:08 2000
@@ -155,9 +155,11 @@
/**** maybe we should use configure here */
/**** and we certainly need more/better #if tests */
-#if defined(__SVR4) || defined(sinix)
+#if defined(__SVR4) || defined(sinix) || defined(__CYGWIN__)
+#if !defined(__CYGWIN__)
#include <sys/stropts.h>
+#endif
static int
get_pty(int master, int *retfd)
@@ -183,6 +185,7 @@
close(mfd);
return 1;
}
+#if !defined(__CYGWIN__)
if ((ret = ioctl(sfd, I_FIND, "ptem")) != 1)
if (ret == -1 || ioctl(sfd, I_PUSH, "ptem") == -1) {
close(mfd);
@@ -201,13 +204,14 @@
close(sfd);
return 1;
}
+#endif /* !defined(__CYGWIN__) */
*retfd = sfd;
return 0;
}
-#else /* ! (defined(__SVR4) || defined(sinix)) */
+#else /* ! (defined(__SVR4) || defined(sinix) || defined(__CYGWIN__)) */
static int
get_pty(int master, int *retfd)
prev parent reply other threads:[~2000-06-27 7:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-27 7:10 PATCH: zpty for Cygwin and strange Zsh test hanger Andrej Borsenkow
2000-06-27 7:20 ` Andrej Borsenkow [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000101bfe008$2b3bc200$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).