From f8551053e5e5462e55e56f9f0f4d2f9d14ec0236 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 17 May 2000 03:42:43 +0000 Subject: 11426: Src/Modules/zpty.c: don't use #elif. --- Src/Modules/zpty.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Src/Modules/zpty.c') diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c index a0897b828..dd15a1d2d 100644 --- a/Src/Modules/zpty.c +++ b/Src/Modules/zpty.c @@ -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; -- cgit 1.4.1