[reSIProcate] [Patch] Build fixes for gcc 4.3 support
Max Bowsher
maxb at f2s.com
Sun Nov 23 18:19:14 CST 2008
Hi,
Trying to build Resiprocate 1.4.1 using GCC 4.3 revealed a few build errors
due to missing #includes in Netxx. Here's a patch:
diff -r 02558528acb3 tfm/contrib/Netxx-0.3.2/src/Address.cxx
--- a/tfm/contrib/Netxx-0.3.2/src/Address.cxx Mon Nov 24 00:13:34 2008 +0000
+++ b/tfm/contrib/Netxx-0.3.2/src/Address.cxx Mon Nov 24 00:16:13 2008 +0000
@@ -57,6 +57,7 @@
// standard includes
#include <cstdlib>
+#include <cstring>
namespace {
const char const_local_service[] = "local";
diff -r 02558528acb3 tfm/contrib/Netxx-0.3.2/src/Datagram.cxx
--- a/tfm/contrib/Netxx-0.3.2/src/Datagram.cxx Mon Nov 24 00:13:34 2008 +0000
+++ b/tfm/contrib/Netxx-0.3.2/src/Datagram.cxx Mon Nov 24 00:16:13 2008 +0000
@@ -64,6 +64,7 @@
#include <memory>
#include <cstring>
#include <vector>
+#include <cstdlib>
namespace {
void call_connect(Netxx::Socket &socket, const Netxx::Peer &peer, std::vector<std::string> &files);
diff -r 02558528acb3 tfm/contrib/Netxx-0.3.2/src/Peer.cxx
--- a/tfm/contrib/Netxx-0.3.2/src/Peer.cxx Mon Nov 24 00:13:34 2008 +0000
+++ b/tfm/contrib/Netxx-0.3.2/src/Peer.cxx Mon Nov 24 00:16:13 2008 +0000
@@ -58,6 +58,7 @@
#include <iostream>
#include <cstdlib>
#include <new>
+#include <cstring>
//####################################################################
namespace {
diff -r 02558528acb3 tfm/contrib/Netxx-0.3.2/src/Probe_select.cxx
--- a/tfm/contrib/Netxx-0.3.2/src/Probe_select.cxx Mon Nov 24 00:13:34 2008 +0000
+++ b/tfm/contrib/Netxx-0.3.2/src/Probe_select.cxx Mon Nov 24 00:16:13 2008 +0000
@@ -63,6 +63,7 @@
#include <string>
#include <list>
#include <set>
+#include <cstring>
//####################################################################
namespace {
Max.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20081124/ea7f5d18/attachment.sig>
More information about the resiprocate-devel
mailing list