From d88aba1ad17ed2b956f4b85fa71190045aefcebc Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 4 May 2001 18:59:20 +0000 Subject: [PATCH] * open_slave.c (pty_open_slave): If revoke() present on system but VHANG_FIRST is not defined, declare local variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13231 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/pty/ChangeLog | 5 +++++ src/util/pty/open_slave.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 41e6a3456..ef8e0b849 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,8 @@ +2001-05-04 Ezra Peisach + + * open_slave.c (pty_open_slave): If revoke() present on system but + VHANG_FIRST is not defined, declare local variable. + 2001-05-04 Tom Yu * dump-utmp.c: Fix some off-by-one errors. Handle cases where we diff --git a/src/util/pty/open_slave.c b/src/util/pty/open_slave.c index 0e863d96a..235b8e8da 100644 --- a/src/util/pty/open_slave.c +++ b/src/util/pty/open_slave.c @@ -29,7 +29,7 @@ long pty_open_slave ( slave, fd) const char *slave; int *fd; { -#ifdef VHANG_FIRST +#if defined(VHANG_FIRST) || defined(HAVE_REVOKE) int vfd; #endif -- 2.26.2