BIND 10 master, updated. a2d07257bc12397054a57d4190cc61419e572278 [master] urgent care fix for build errors with sunstudio: - use <xxx.h> instead of <cxxx> (e.g. use stdlib.h instead of cstdlib) - avoid using variable length array as for the first point, it didn't make sense that cxxx didn't work and we may want to look into it further to understand the real cause. but since this has been breaking build, and it somehow fixes the issue, I'll apply it for now.
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Apr 8 07:51:44 UTC 2011
The branch, master has been updated
via a2d07257bc12397054a57d4190cc61419e572278 (commit)
from 2e92b2f8a977a376fa38e3a51c9646ea9e83c4b8 (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 a2d07257bc12397054a57d4190cc61419e572278
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Fri Apr 8 07:49:14 2011 +0000
[master] urgent care fix for build errors with sunstudio:
- use <xxx.h> instead of <cxxx> (e.g. use stdlib.h instead of cstdlib)
- avoid using variable length array
as for the first point, it didn't make sense that cxxx didn't work and we may
want to look into it further to understand the real cause. but since this has
been breaking build, and it somehow fixes the issue, I'll apply it for now.
okayed on jabber.
-----------------------------------------------------------------------
Summary of changes:
src/bin/auth/common.cc | 2 +-
src/bin/sockcreator/sockcreator.cc | 2 +-
src/bin/sockcreator/tests/sockcreator_tests.cc | 2 +-
src/lib/dns/buffer.h | 2 +-
src/lib/util/unittests/fork.cc | 6 +++---
5 files changed, 7 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/common.cc b/src/bin/auth/common.cc
index fe383e2..35381a1 100644
--- a/src/bin/auth/common.cc
+++ b/src/bin/auth/common.cc
@@ -14,7 +14,7 @@
#include <auth/common.h>
#include <auth/spec_config.h>
-#include <cstdlib>
+#include <stdlib.h>
using std::string;
diff --git a/src/bin/sockcreator/sockcreator.cc b/src/bin/sockcreator/sockcreator.cc
index b9da84f..6b50813 100644
--- a/src/bin/sockcreator/sockcreator.cc
+++ b/src/bin/sockcreator/sockcreator.cc
@@ -18,7 +18,7 @@
#include <unistd.h>
#include <cerrno>
-#include <cstring>
+#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
diff --git a/src/bin/sockcreator/tests/sockcreator_tests.cc b/src/bin/sockcreator/tests/sockcreator_tests.cc
index f781332..6065ffe 100644
--- a/src/bin/sockcreator/tests/sockcreator_tests.cc
+++ b/src/bin/sockcreator/tests/sockcreator_tests.cc
@@ -256,7 +256,7 @@ TEST(run, bad_sockets) {
// We need to construct the answer, but it depends on int length.
size_t int_len(sizeof(int));
size_t result_len(4 + 2 * int_len);
- char result[result_len];
+ char result[4 + sizeof(int) * 2];
// Both errno parts should be 0
memset(result, 0, result_len);
// Fill the 2 control parts
diff --git a/src/lib/dns/buffer.h b/src/lib/dns/buffer.h
index 6fbbdb1..46a9bf4 100644
--- a/src/lib/dns/buffer.h
+++ b/src/lib/dns/buffer.h
@@ -15,7 +15,7 @@
#ifndef __BUFFER_H
#define __BUFFER_H 1
-#include <cstdlib>
+#include <stdlib.h>
#include <cstring>
#include <vector>
diff --git a/src/lib/util/unittests/fork.cc b/src/lib/util/unittests/fork.cc
index 1eeb2cc..3414a3c 100644
--- a/src/lib/util/unittests/fork.cc
+++ b/src/lib/util/unittests/fork.cc
@@ -20,10 +20,10 @@
#include <sys/wait.h>
#include <unistd.h>
#include <signal.h>
-#include <cstring>
+#include <string.h>
#include <cerrno>
-#include <cstdlib>
-#include <cstdio>
+#include <stdlib.h>
+#include <stdio.h>
using namespace isc::util::io;
More information about the bind10-changes
mailing list