diff options
author | Thierry Ghelew <tlux@ghelew.net> | 2017-09-10 23:09:17 -0400 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-09-11 10:15:15 +0100 |
commit | 9f2271168d2c1f827d66dbfda4fbc458976e840c (patch) | |
tree | b3244607c6af5adfd896abcad57c0ec56579d14b | |
parent | 2ef3dff65a9fc0bc69446374473ad08e6fff4755 (diff) | |
download | zsh-9f2271168d2c1f827d66dbfda4fbc458976e840c.tar.gz zsh-9f2271168d2c1f827d66dbfda4fbc458976e840c.tar.xz zsh-9f2271168d2c1f827d66dbfda4fbc458976e840c.zip |
41666: zpty compatibility for OpenBSD
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/Modules/zpty.c | 7 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 35ca93d4d..8fa3d1500 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2017-09-11 Peter Stephenson <p.stephenson@samsung.com> + * Thierry Ghelew: 41666: Src/Modules/zpty.c: zpty compatibility + for OpenBSD. + * 41668: Doc/Zsh/invoke.yo, Src/builtin.c, Src/init.c, Src/zsh.h, Test/B07emulate.ztst: Add option --emulate at invocation to start in correct emulation, as the ARGV0 trick 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 |