about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-11-18 10:14:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-11-18 10:14:35 +0000
commit1e9b85e586a24ae119e4f41504ea2e71e4dd5de7 (patch)
tree092d6a6832f2fa9feb3c5a7cb8ffcfb7392e44ad /Src/Modules
parent14231691e15744c0aac39224e9aa0d84835313fe (diff)
downloadzsh-1e9b85e586a24ae119e4f41504ea2e71e4dd5de7.tar.gz
zsh-1e9b85e586a24ae119e4f41504ea2e71e4dd5de7.tar.xz
zsh-1e9b85e586a24ae119e4f41504ea2e71e4dd5de7.zip
François Revol: some BeOS fixes
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zpty.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index 6c332b270..d115afcef 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -260,6 +260,9 @@ get_pty(int master, int *retfd)
 
     if (master) {
 	strcpy(name, "/dev/ptyxx");
+#if defined(__BEOS__) || defined(__HAIKU__)
+	name[7] = '/';
+#endif
 
 	for (p1 = char1; *p1; p1++) {
 	    name[8] = *p1;