about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorThierry Ghelew <tlux@ghelew.net>2017-09-10 23:09:17 -0400
committerPeter Stephenson <pws@zsh.org>2017-09-11 10:15:15 +0100
commit9f2271168d2c1f827d66dbfda4fbc458976e840c (patch)
treeb3244607c6af5adfd896abcad57c0ec56579d14b /Src/Modules
parent2ef3dff65a9fc0bc69446374473ad08e6fff4755 (diff)
downloadzsh-9f2271168d2c1f827d66dbfda4fbc458976e840c.tar.gz
zsh-9f2271168d2c1f827d66dbfda4fbc458976e840c.tar.xz
zsh-9f2271168d2c1f827d66dbfda4fbc458976e840c.zip
41666: zpty compatibility for OpenBSD
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 3c1bef58f..1c93a1d02 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -254,7 +254,12 @@ get_pty(int master, int *retfd)
 #elif defined(__FreeBSD__) || defined(__DragonFly__)
     static char char1[] = "pqrsPQRS";
     static char char2[] = "0123456789abcdefghijklmnopqrstuv";
-#else /* __FreeBSD__ || __DragonFly__ */
+#elif defined(__OpenBSD__)
+    static char char1[] = "pqrstuvwxyzPQRST";
+    static char char2[] = "0123456789"
+                          "abcdefghijklmnopqrstuvwxyz"
+                          "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+#else /* __FreeBSD__ || __DragonFly__  || __OpenBSD*/
     static char char1[] = "pqrstuvwxyzPQRST";
     static char char2[] = "0123456789abcdef";
 #endif