summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-05-08 10:26:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-05-08 10:26:58 +0000
commit8ff0785863b5875fc10321b7da02a2ad3e7b76eb (patch)
tree32ee604e732ec0873aae868114774ea3a9d2588e /Src/Modules
parentff82191c260160637ba67f0b4ecd4dd46778f53c (diff)
downloadzsh-8ff0785863b5875fc10321b7da02a2ad3e7b76eb.tar.gz
zsh-8ff0785863b5875fc10321b7da02a2ad3e7b76eb.tar.xz
zsh-8ff0785863b5875fc10321b7da02a2ad3e7b76eb.zip
Fixes from Andrej for zpty on cygwin
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zpty.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index c69aa4e97..80deba786 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -183,7 +183,12 @@ get_pty(int master, int *retfd)
 
 	return 0;
     }
-    if ((sfd = open(name, O_RDWR|O_NOCTTY)) < 0) {
+    if ((sfd = open(name, O_RDWR
+#ifndef __CYGWIN__
+		    /* It is not clear whether this flag is actually needed. */
+		    |O_NOCTTY
+#endif
+	)) < 0) {
 	close(mfd);
 	return 1;
     }