diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2005-05-11 09:27:05 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2005-05-11 09:27:05 +0000 |
commit | af31bd1741effb8aa8a6fb1070c61e958c47b31f (patch) | |
tree | 3b50650cb6031ee1738dcbdd5f6103c194d130c6 /Src/Modules/zpty.c | |
parent | 396ae4675744aaab998e7f1b6d80de44e030fa7f (diff) | |
download | zsh-af31bd1741effb8aa8a6fb1070c61e958c47b31f.tar.gz zsh-af31bd1741effb8aa8a6fb1070c61e958c47b31f.tar.xz zsh-af31bd1741effb8aa8a6fb1070c61e958c47b31f.zip |
Joerg Sonnenberger: 21252: Dragonfly BSD support
Diffstat (limited to 'Src/Modules/zpty.c')
-rw-r--r-- | Src/Modules/zpty.c | 8 |
1 files changed, 3 insertions, 5 deletions
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; |