[krbdev.mit.edu #2300] krb5-1.3.2 and HP UX - foreachaddr.c

DEEngert@anl.gov via RT rt-comment at krbdev.mit.edu
Fri Feb 27 15:38:39 EST 2004




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 at anl.gov>
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439 
 (630) 252-5444


More information about the krb5-bugs mailing list