From af31bd1741effb8aa8a6fb1070c61e958c47b31f Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 11 May 2005 09:27:05 +0000 Subject: Joerg Sonnenberger: 21252: Dragonfly BSD support --- Src/Modules/zpty.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Src/Modules') diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c index fce09a02a..637d3e62f 100644 --- a/Src/Modules/zpty.c +++ b/Src/Modules/zpty.c @@ -246,15 +246,13 @@ get_pty(int master, int *retfd) #ifdef __linux static char char1[] = "abcdefghijklmnopqrstuvwxyz"; static char char2[] = "0123456789abcdef"; -#else /* __linux */ -# ifdef __FreeBSD__ +#elif defined(__FreeBSD__) || defined(__DragonFly__) static char char1[] = "pqrsPQRS"; static char char2[] = "0123456789abcdefghijklmnopqrstuv"; -# else /* __FreeBSD__ */ +#else /* __FreeBSD__ || __DragonFly__ */ static char char1[] = "pqrstuvwxyzPQRST"; static char char2[] = "0123456789abcdef"; -# endif /* __FreeBSD__ */ -#endif /* __linux */ +#endif static char name[11]; static int mfd, sfd; -- cgit 1.4.1