+2000-02-24 Ezra Peisach <epeisach@mit.edu>
+
+ * configure.in: Test for <arpa/inet.h> include file for inet_ntop
+ prototype.
+
2000-02-07 Ken Raeburn <raeburn@mit.edu>
* configure.in: Check for inet_ntop and getipnodebyaddr, both used
SETENVOBJ=
fi
AC_SUBST(SETENVOBJ)
-AC_CHECK_HEADERS(unistd.h pwd.h)
+AC_CHECK_HEADERS(unistd.h pwd.h arpa/inet.h)
case $krb5_cv_host in
alpha-dec-osf*)
AC_CHECK_LIB(security,setluid,
+2000-02-24 Ezra Peisach <epeisach@engrailed.mit.edu>
+
+ * klist.c: Include <arpa/inet.h> if present for inet_ntop
+ prototype. Use const for the variable receiving the result of
+ inet_ntop.
+
2000-02-16 Danilo Almeida <dalmeida@mit.edu>
* klist.c: Fix GET_PROGNAME macro to properly return program name
#include <string.h>
#include <stdio.h>
#include <time.h>
+#if defined(HAVE_ARPA_INET_H)
+#include <arpa/inet.h>
+#endif
#ifndef _WIN32
#define GET_PROGNAME(x) (strrchr((x), '/') ? strrchr((x), '/')+1 : (x))
* whether Kerberos 4 and Keberos 5 libraries are available
*/
+#ifdef KRB5_KRB4_COMPAT
static int got_k4 = 0;
+#endif
static int got_k5 = 0;
int
if (no_resolve || !h) {
#ifdef HAVE_INET_NTOP
char buf[46];
- char *name = inet_ntop(a->addrtype, a->contents, buf, sizeof(buf));
+ const char *name = inet_ntop(a->addrtype, a->contents, buf, sizeof(buf));
if (name) {
printf ("%s", name);
return;