svn commit: lorikeet r471 - in trunk/heimdal/lib/roken: .
lha at samba.org
lha at samba.org
Tue Sep 13 20:13:47 GMT 2005
Author: lha
Date: 2005-09-13 20:13:46 +0000 (Tue, 13 Sep 2005)
New Revision: 471
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=471
Log:
Guess that this will please HP/UX 11.nn that have a
SIOCGLIFCONF that doesn't work like Solaris SIOCGLIFCONF.
If this works, I'll commit this change plus autoconf glue to Heimdal.
Modified:
trunk/heimdal/lib/roken/getifaddrs.c
Changeset:
Modified: trunk/heimdal/lib/roken/getifaddrs.c
===================================================================
--- trunk/heimdal/lib/roken/getifaddrs.c 2005-09-13 19:50:11 UTC (rev 470)
+++ trunk/heimdal/lib/roken/getifaddrs.c 2005-09-13 20:13:46 UTC (rev 471)
@@ -56,6 +56,21 @@
#include <ifaddrs.h>
+#ifdef __hpux
+#define lifconf if_laddrconf
+#define lifc_len iflc_len
+#define lifc_buf iflc_buf
+#define lifc_req iflc_req
+
+#define lifreq if_laddrreq
+#define lifr_addr iflr_addr
+#define lifr_name iflr_name
+#define lifr_dstaddr iflr_dstaddr
+#define lifr_broadaddr iflr_broadaddr
+#define lifr_flags iflr_flags
+#define lifr_index iflr_index
+#endif
+
#ifdef AF_NETLINK
/*
@@ -1011,8 +1026,10 @@
ret = ENOMEM;
goto error_out;
}
+#ifndef __hpux
ifconf.lifc_family = AF_UNSPEC;
ifconf.lifc_flags = 0;
+#endif
ifconf.lifc_len = buf_size;
ifconf.lifc_buf = buf;
More information about the samba-cvs
mailing list