1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-15 14:21:13 +02:00

41666: zpty compatibility for OpenBSD

This commit is contained in:
Thierry Ghelew 2017-09-10 23:09:17 -04:00 committed by Peter Stephenson
parent 2ef3dff65a
commit 9f2271168d
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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