* configure.in: Check for system provided getutmp() prototype
authorEzra Peisach <epeisach@mit.edu>
Mon, 11 Jun 2001 15:16:42 +0000 (15:16 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 11 Jun 2001 15:16:42 +0000 (15:16 +0000)
* update_wtmp.c: Provide prototype for getutmp() if needed.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13325 dc483132-0cff-0310-8789-dd5450dbe970

src/util/pty/ChangeLog
src/util/pty/configure.in
src/util/pty/update_wtmp.c

index 7b21d6d0309a5402e96e7313ccd51f64a7288eaa..8c9f2b2d285775b04ba446270c8e708eb054bef8 100644 (file)
@@ -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
index 480532211d257eb3d8f37953fe5dadc3a2caeefe..b41790b8ee8a0aa899e1925fece45f762f2792b7 100644 (file)
@@ -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(
index f557d3602ad0b86e7c332cb6ba8f20ff1501ef63..b4b5cec9744647fec2d4185149df51046c0d9f5b 100644 (file)
 
 #ifdef HAVE_SETUTXENT
 
+#if defined(HAVE_GETUTMP) && defined(NEED_GETUTMP_PROTO)
+extern void getutmp(const struct utmpx *, struct utmp *);
+#endif
+
 /*
  * Welcome to conditional salad.
  *