summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-16 14:41:16 +0000
committerAlan Conway <aconway@apache.org>2008-10-16 14:41:16 +0000
commit89a14d0b1a860ec7f2b167d16e743391774e4207 (patch)
treef06b80f51ffa5fc6d8652f3573a119f6d5ca1261 /cpp/src
parentdeb63db7cf62fca17b77df2b83d37522000edf9b (diff)
downloadqpid-python-89a14d0b1a860ec7f2b167d16e743391774e4207.tar.gz
Compile boost.spirit library in thread-safe mode.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@705257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Makefile.am1
-rw-r--r--cpp/src/qpid/Url.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Makefile.am b/cpp/src/Makefile.am
index c63b98b18d..888883c6ba 100644
--- a/cpp/src/Makefile.am
+++ b/cpp/src/Makefile.am
@@ -216,6 +216,7 @@ EXTRA_DIST +=\
libqpidcommon_la_LIBADD = \
-lboost_program_options \
-lboost_filesystem \
+ -lboost_thread-mt \
-luuid \
$(LIB_DLOPEN) \
$(LIB_CLOCK_GETTIME)
diff --git a/cpp/src/qpid/Url.cpp b/cpp/src/qpid/Url.cpp
index 422939fdf4..22e81b3adc 100644
--- a/cpp/src/qpid/Url.cpp
+++ b/cpp/src/qpid/Url.cpp
@@ -23,6 +23,8 @@
#include "qpid/sys/StrError.h"
#include <limits.h> // NB: must be before boost/spirit headers.
+#define BOOST_SPIRIT_THREADSAFE
+
#include <boost/spirit.hpp>
#include <boost/spirit/actor.hpp>
@@ -43,7 +45,7 @@ std::ostream& operator<<(std::ostream& os, const TcpAddress& a) {
std::istream& operator>>(std::istream&, const TcpAddress&);
Url Url::getHostNameUrl(uint16_t port) {
- TcpAddress address("", port);
+ TcpAddress address(std::string(), port);
if (!sys::SystemInfo::getLocalHostname(address))
throw InvalidUrl(QPID_MSG("Cannot get host name: " << qpid::sys::strError(errno)));
return Url(address);