summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2005-05-11 09:27:05 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2005-05-11 09:27:05 +0000
commitaf31bd1741effb8aa8a6fb1070c61e958c47b31f (patch)
tree3b50650cb6031ee1738dcbdd5f6103c194d130c6 /Src/Modules
parent396ae4675744aaab998e7f1b6d80de44e030fa7f (diff)
downloadzsh-af31bd1741effb8aa8a6fb1070c61e958c47b31f.tar.gz
zsh-af31bd1741effb8aa8a6fb1070c61e958c47b31f.tar.xz
zsh-af31bd1741effb8aa8a6fb1070c61e958c47b31f.zip
Joerg Sonnenberger: 21252: Dragonfly BSD support
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zpty.c8
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;