about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2004-02-26 20:48:09 +0000
committerWayne Davison <wayned@users.sourceforge.net>2004-02-26 20:48:09 +0000
commitf75dc6bb869a0898f3a650b61951a26b85055ecd (patch)
tree6ca16555397f7ae81a7df0ac2a3081a857ec1ed7 /Src/Modules
parent40dae2a82da2dd548a2de16e3e2a771a95bed650 (diff)
downloadzsh-f75dc6bb869a0898f3a650b61951a26b85055ecd.tar.gz
zsh-f75dc6bb869a0898f3a650b61951a26b85055ecd.tar.xz
zsh-f75dc6bb869a0898f3a650b61951a26b85055ecd.zip
Got rid of an unused-variable compiler-warning.
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zpty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/Modules/zpty.c b/Src/Modules/zpty.c
index a3e6f2770..08ec1b2bd 100644
--- a/Src/Modules/zpty.c
+++ b/Src/Modules/zpty.c
@@ -165,8 +165,9 @@ get_pty(int master, int *retfd)
 {
     static char *name;
     static int mfd, sfd;
-
+#if defined(I_FIND) && defined(I_PUSH) && defined(__SVR4)
     int ret;
+#endif
 
     if (master) {
 	if ((mfd = open("/dev/ptmx", O_RDWR|O_NOCTTY)) < 0)