mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 06:20:55 +01:00
11426: Src/Modules/zpty.c: don't use #elif.
This commit is contained in:
parent
590475e1b7
commit
f8551053e5
2 changed files with 10 additions and 4 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2000-05-17 Tanaka Akira <akr@zsh.org>
|
||||
|
||||
* 11426: Src/Modules/zpty.c: don't use #elif.
|
||||
|
||||
2000-05-16 Tanaka Akira <akr@zsh.org>
|
||||
|
||||
* 11420: Src/Modules/zpty.c: try more pty device files.
|
||||
|
|
|
|||
|
|
@ -213,16 +213,18 @@ static int
|
|||
get_pty(int master, int *retfd)
|
||||
{
|
||||
|
||||
#if defined(__linux)
|
||||
#ifdef __linux
|
||||
static char char1[] = "abcdefghijklmnopqrstuvwxyz";
|
||||
static char char2[] = "0123456789abcdef";
|
||||
#elif defined(__FreeBSD__)
|
||||
#else /* __linux */
|
||||
# ifdef __FreeBSD__
|
||||
static char char1[] = "pqrsPQRS";
|
||||
static char char2[] = "0123456789abcdefghijklmnopqrstuv";
|
||||
#else
|
||||
# else /* __FreeBSD__ */
|
||||
static char char1[] = "pqrstuvwxyzPQRST";
|
||||
static char char2[] = "0123456789abcdef";
|
||||
#endif
|
||||
# endif /* __FreeBSD__ */
|
||||
#endif /* __linux */
|
||||
|
||||
static char name[11];
|
||||
static int mfd, sfd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue