diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2001-06-11 15:16:42 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-11 15:16:42 +0000 |
| commit | 1187bed0d52bc5b69b6dba872915d6ff104f3a95 (patch) | |
| tree | 622fd67f13c741d8204af0328c003ce3c77553cd /src | |
| parent | 98f89fa0b26ed1dba66a76d4213c2c38b844b795 (diff) | |
| download | krb5-1187bed0d52bc5b69b6dba872915d6ff104f3a95.tar.gz krb5-1187bed0d52bc5b69b6dba872915d6ff104f3a95.tar.xz krb5-1187bed0d52bc5b69b6dba872915d6ff104f3a95.zip | |
* configure.in: Check for system provided getutmp() prototype
* update_wtmp.c: Provide prototype for getutmp() if needed.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13325 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
| -rw-r--r-- | src/util/pty/ChangeLog | 6 | ||||
| -rw-r--r-- | src/util/pty/configure.in | 17 | ||||
| -rw-r--r-- | src/util/pty/update_wtmp.c | 4 |
3 files changed, 26 insertions, 1 deletions
diff --git a/src/util/pty/ChangeLog b/src/util/pty/ChangeLog index 7b21d6d030..8c9f2b2d28 100644 --- a/src/util/pty/ChangeLog +++ b/src/util/pty/ChangeLog @@ -1,3 +1,9 @@ +2001-06-11 Ezra Peisach <epeisach@mit.edu> + + * configure.in: Check for system provided getutmp() prototype. + + * update_wtmp.c: Provide prototype for getutmp() if needed. + 2001-05-15 Tom Yu <tlyu@mit.edu> * getpty.c: Make pty_getpty() into ptyint_getpty_ext(), which has diff --git a/src/util/pty/configure.in b/src/util/pty/configure.in index 480532211d..b41790b8ee 100644 --- a/src/util/pty/configure.in +++ b/src/util/pty/configure.in @@ -187,7 +187,22 @@ fi # end of utmp-related hair # ###################################################################### - +dnl +KRB5_NEED_PROTO([#ifdef HAVE_UTMP_H +#include <utmp.h> +#endif +#ifdef HAVE_UTMPX_H +#include <utmpx.h> +#endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif +],getutmp) +dnl +dnl AC_MSG_CHECKING([streams interface]) AC_CACHE_VAL(krb5_cv_has_streams, [AC_TRY_COMPILE( diff --git a/src/util/pty/update_wtmp.c b/src/util/pty/update_wtmp.c index f557d3602a..b4b5cec974 100644 --- a/src/util/pty/update_wtmp.c +++ b/src/util/pty/update_wtmp.c @@ -38,6 +38,10 @@ #ifdef HAVE_SETUTXENT +#if defined(HAVE_GETUTMP) && defined(NEED_GETUTMP_PROTO) +extern void getutmp(const struct utmpx *, struct utmp *); +#endif + /* * Welcome to conditional salad. * |
