BIND 10 trac1238, updated. 936511f6e114f26bf86497466a7f61ef467bf5ad [1238] Compilation fix on non-Linux systems.

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Nov 30 13:42:53 UTC 2011


The branch, trac1238 has been updated
       via  936511f6e114f26bf86497466a7f61ef467bf5ad (commit)
      from  5a2d958780a4a671cd8df9080d99ff95dd16772d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 936511f6e114f26bf86497466a7f61ef467bf5ad
Author: Tomek Mrugalski <tomasz at isc.org>
Date:   Mon Nov 28 01:42:44 2011 +0800

    [1238] Compilation fix on non-Linux systems.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/dhcp6/iface_mgr.cc |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/dhcp6/iface_mgr.cc b/src/bin/dhcp6/iface_mgr.cc
index ee99f2e..f1eb834 100644
--- a/src/bin/dhcp6/iface_mgr.cc
+++ b/src/bin/dhcp6/iface_mgr.cc
@@ -323,13 +323,16 @@ IfaceMgr::openSocket4(Iface& iface, const IOAddress& addr, int port) {
         close(sock);
         isc_throw(Unexpected, "setsockopt: IP_RECVPKTINFO failed.")
     }
-#else
+#elif defined(IP_PKTINFO)
     /* RFC2292 - an old way */
     if (setsockopt(sock, IPPROTO_IP, IP_PKTINFO,
                    &flag, sizeof(flag)) != 0) {
         close(sock);
         isc_throw(Unexpected, "setsockopt: IP_PKTINFO: failed.");
     }
+#else
+    // "Neither IP_RECVPKTINFO nor IP_PKTINFO defined. Cannot continue"
+    flag = 1; // just to avoid compilation warnings about unused flag variable
 #endif
 
 




More information about the bind10-changes mailing list