BIND 10 master, updated. 10fa44e191cc2604e446068ef4325fe5b059dddb [master] Correct compile error in watch_socket_unittests.cc under Solaris

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Feb 25 20:56:07 UTC 2014


The branch, master has been updated
       via  10fa44e191cc2604e446068ef4325fe5b059dddb (commit)
      from  dbedf1862bc30ffd3e21140f2a6e72302d769b7a (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 10fa44e191cc2604e446068ef4325fe5b059dddb
Author: Thomas Markwalder <tmark at isc.org>
Date:   Tue Feb 25 15:54:02 2014 -0500

    [master] Correct compile error in watch_socket_unittests.cc under Solaris
    
    Solaris defines FIONREAD, used in unit test is dhcp_ddns/watch_socket_unittests.cc in sys/filio.h.  Added header check for this file to configure.ac and use
    of HAVE_SYS_FILIO_H in the unit test source.

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

Summary of changes:
 configure.ac                                      |    3 +++
 src/lib/dhcp_ddns/tests/watch_socket_unittests.cc |    7 ++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 1c239a3..3d7fd05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -910,6 +910,9 @@ if test "$MYSQL_CONFIG" != "" ; then
     AC_DEFINE([HAVE_MYSQL], [1], [MySQL is present])
 fi
 
+# Solaris puts FIONREAD in filio.h
+AC_CHECK_HEADERS(sys/filio.h,,,)
+
 # ... and at the shell level, so Makefile.am can take action depending on this.
 AM_CONDITIONAL(HAVE_MYSQL, test "$MYSQL_CONFIG" != "")
 
diff --git a/src/lib/dhcp_ddns/tests/watch_socket_unittests.cc b/src/lib/dhcp_ddns/tests/watch_socket_unittests.cc
index e19b8cb..059767f 100644
--- a/src/lib/dhcp_ddns/tests/watch_socket_unittests.cc
+++ b/src/lib/dhcp_ddns/tests/watch_socket_unittests.cc
@@ -11,7 +11,7 @@
 // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
-
+#include <config.h>
 #include <dhcp_ddns/watch_socket.h>
 #include <test_utils.h>
 
@@ -20,6 +20,11 @@
 #include <sys/select.h>
 #include <sys/ioctl.h>
 
+#ifdef HAVE_SYS_FILIO_H
+// FIONREAD is here on Solaris
+#include <sys/filio.h>
+#endif
+
 using namespace std;
 using namespace isc;
 using namespace isc::dhcp_ddns;



More information about the bind10-changes mailing list