summaryrefslogtreecommitdiffstats
path: root/src/util/pty/pty-int.h
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2001-04-30 21:53:15 +0000
committerTom Yu <tlyu@mit.edu>2001-04-30 21:53:15 +0000
commita2a6293f177e66c9ea066c585675663bb1e275fb (patch)
treec2e50e9d3eee653042250ded9fc7e5d62c956110 /src/util/pty/pty-int.h
parentfd6e8c85fd56f281de94b4c46b20c5c78a394e10 (diff)
downloadkrb5-a2a6293f177e66c9ea066c585675663bb1e275fb.tar.gz
krb5-a2a6293f177e66c9ea066c585675663bb1e275fb.tar.xz
krb5-a2a6293f177e66c9ea066c585675663bb1e275fb.zip
* configure.in: Fix some quoting of shell variables when passing
to "test". Reorder some logic in consistency checks to validate cache variables against "yes" to account for possible empty or nonexistent values. * pty-int.h: Fix conditional prototype of update_wtmp(). * update_wtmp.c: Fix conditional compilation of update_wtmp() to cover the case where we have setutxent() but don't have updwtmpx() and WTMPX_FILE, as is the case on some Linux installations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13222 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/pty/pty-int.h')
-rw-r--r--src/util/pty/pty-int.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/pty/pty-int.h b/src/util/pty/pty-int.h
index a955533dc..fa7f828f4 100644
--- a/src/util/pty/pty-int.h
+++ b/src/util/pty/pty-int.h
@@ -99,7 +99,9 @@ long ptyint_void_association(void);
long ptyint_open_ctty (char *slave, int *fd);
#ifdef HAVE_SETUTXENT
long ptyint_update_wtmpx(struct utmpx *utx);
-#else
+#endif
+#if !(defined(WTMPX_FILE) && defined(HAVE_UPDWTMPX)) \
+ || !defined(HAVE_SETUXENT)
long ptyint_update_wtmp(struct utmp *ut);
#endif
void ptyint_vhangup(void);