summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-08-23 14:31:56 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2015-08-23 14:31:56 +0900
commit2e69ece5cfab850b8ba00b272f35ccdaf727c781 (patch)
treee72041a997e4c2935664394c2c89c640a6871193 /Src
parent43079e5d8ec4e3016c380a6043c90f94fe45d72a (diff)
downloadzsh-2e69ece5cfab850b8ba00b272f35ccdaf727c781.tar.gz
zsh-2e69ece5cfab850b8ba00b272f35ccdaf727c781.tar.xz
zsh-2e69ece5cfab850b8ba00b272f35ccdaf727c781.zip
users/20455: do not use posix_openpt() on OpenBSD
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/zpty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index 12e42b5bd..9741ee287 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -154,7 +154,8 @@ getptycmd(char *name)
     return NULL;
 }
 
-#ifdef USE_DEV_PTMX
+/* posix_openpt() seems to have some problem on OpenBSD */
+#if defined(USE_DEV_PTMX) && !defined(__OpenBSD__)
 
 #ifdef HAVE_SYS_STROPTS_H
 #include <sys/stropts.h>