Date: | Fri, 27 Feb 2004 14:38:54 -0600 |
From: | "Douglas E. Engert" <deengert@anl.gov> |
To: | krb5-bugs@mit.edu |
Subject: | krb5-1.3.2 and HP UX - foreachaddr.c |
HP UX 11i and IA64 HP UX 11.23 define SIOCGLIFCONF
and SIOCGLIFNUM, but define the structures used by these
features differently. Thus foreachaddr.c does not compile.
The comments on the #ifdef imply for Solaris 8 and later only.
This patch makes sure the HP versions will not try to use this feature.
--- ,foreachaddr.c Mon Sep 29 14:07:29 2003
+++ foreachaddr.c Fri Feb 27 13:21:59 2004
@@ -259,7 +259,7 @@
return ret;
}
-#ifdef SIOCGLIFCONF /* Solaris */
+#if defined(SIOCGLIFCONF) && !defined(__hpux) /* Solaris */
static int
get_lifconf (int af, int s, size_t *lenp, /*@out@*/ char *buf)
/*@modifies *buf,*lenp@*/
@@ -431,7 +431,7 @@
return 0;
}
-#elif defined (SIOCGLIFNUM) /* Solaris 8 and later; Sol 7? */
+#elif defined (SIOCGLIFNUM) && !defined(__hpux) /* Solaris 8 and later; Sol 7? */
static int
foreach_localaddr (/*@null@*/ void *data,
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444