Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/dist/bind be consistent with libc getaddr/nameinfo.



details:   https://anonhg.NetBSD.org/src/rev/9611e44ecf0b
branches:  trunk
changeset: 533357:9611e44ecf0b
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jun 28 06:40:51 2002 +0000

description:
be consistent with libc getaddr/nameinfo.

diffstat:

 dist/bind/include/port_ipv6.h   |  2 ++
 dist/bind/lib/irs/getnameinfo.c |  6 +++++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 1432626d3cc8 -r 9611e44ecf0b dist/bind/include/port_ipv6.h
--- a/dist/bind/include/port_ipv6.h     Fri Jun 28 06:21:29 2002 +0000
+++ b/dist/bind/include/port_ipv6.h     Fri Jun 28 06:40:51 2002 +0000
@@ -5,5 +5,7 @@
 #define port_ipv6_h
 
 #define HAS_INET6_STRUCTS
+#define HAVE_SIN6_SCOPE_ID
+#define USE_IFNAMELINKID
 
 #endif
diff -r 1432626d3cc8 -r 9611e44ecf0b dist/bind/lib/irs/getnameinfo.c
--- a/dist/bind/lib/irs/getnameinfo.c   Fri Jun 28 06:21:29 2002 +0000
+++ b/dist/bind/lib/irs/getnameinfo.c   Fri Jun 28 06:40:51 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getnameinfo.c,v 1.3 2002/06/20 11:43:04 itojun Exp $   */
+/*     $NetBSD: getnameinfo.c,v 1.4 2002/06/28 06:40:52 itojun Exp $   */
 
 /*
  * Issues to be discussed:
@@ -54,6 +54,10 @@
 
 #include <port_after.h>
 
+#ifdef USE_IFNAMELINKID
+#include <net/if.h>
+#endif
+
 /*
  * Note that a_off will be dynamically adjusted so that to be consistent
  * with the definition of sockaddr_in{,6}.



Home | Main Index | Thread Index | Old Index