15 lines
471 B
Text
15 lines
471 B
Text
$NetBSD: patch-ac,v 1.1 2007/11/30 20:09:37 rillig Exp $
|
|
|
|
On NetBSD, struct ifconf.ifc_buf is a void *.
|
|
|
|
--- libasync/myaddrs.C.orig 2006-02-15 09:13:35.000000000 +0000
|
|
+++ libasync/myaddrs.C 2007-11-30 20:03:01.000000000 +0000
|
|
@@ -74,7 +74,7 @@ myipaddrs (vec<in_addr> *res)
|
|
res->clear ();
|
|
bhash<in_addr> addrs;
|
|
|
|
- p = ifc.ifc_buf;
|
|
+ p = static_cast<char *>(ifc.ifc_buf);
|
|
e = p + ifc.ifc_len;
|
|
while (p < e) {
|
|
struct ifreq *ifrp = (struct ifreq *) p;
|