Problems compiling bind-9.3.0rc1 on suse linux

Mark Andrews Mark_Andrews at isc.org
Fri Jun 18 10:42:15 UTC 2004


	Apply the following patch.

Index: lib/isc/unix/ifiter_ioctl.c
===================================================================
RCS file: /proj/cvs/prod/bind9/lib/isc/unix/ifiter_ioctl.c,v
retrieving revision 1.19.2.5.2.11
diff -u -r1.19.2.5.2.11 ifiter_ioctl.c
--- lib/isc/unix/ifiter_ioctl.c	6 May 2004 03:19:40 -0000	1.19.2.5.2.11
+++ lib/isc/unix/ifiter_ioctl.c	18 Jun 2004 10:41:16 -0000
@@ -100,6 +100,15 @@
 #define IFCONF_BUFSIZE_INITIAL	4096
 #define IFCONF_BUFSIZE_MAX	1048576
 
+#ifdef __linux
+#ifndef IF_NAMESIZE
+# ifdef IFNAMSIZ
+#  define IF_NAMESIZE  IFNAMSIZ  
+# else
+#  define IF_NAMESIZE 16
+# endif
+#endif
+
 static isc_result_t
 getbuf4(isc_interfaceiter_t *iter) {
 	char strbuf[ISC_STRERRORSIZE];
Index: lib/isc/unix/interfaceiter.c
===================================================================
RCS file: /proj/cvs/prod/bind9/lib/isc/unix/interfaceiter.c,v
retrieving revision 1.22.2.1.10.12
diff -u -r1.22.2.1.10.12 interfaceiter.c
--- lib/isc/unix/interfaceiter.c	20 Apr 2004 06:46:53 -0000	1.22.2.1.10.12
+++ lib/isc/unix/interfaceiter.c	18 Jun 2004 10:41:17 -0000
@@ -65,6 +65,10 @@
 {
 	struct sockaddr_in6 *sa6;
 
+#ifndef ISC_PLATFORM_HAVEIFNAMETOINDEX
+	UNUSED(ifname);
+#endif
+
 	/* clear any remaining value for safety */
 	memset(dst, 0, sizeof(*dst));
 
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org


More information about the bind-users mailing list