summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2012-11-06 17:31:15 (GMT)
committerSwift Review <review@swift.im>2012-11-06 19:04:46 (GMT)
commitd38f6d1111dda81ec4c5bbf0e3c95a128ff77e62 (patch)
tree64582520db43bbbe2e7e46436d735885149c0bb2
parentbf7e61aaf36e85dce71f25d40adfa4170e675d3f (diff)
downloadswift-d38f6d1111dda81ec4c5bbf0e3c95a128ff77e62.zip
swift-d38f6d1111dda81ec4c5bbf0e3c95a128ff77e62.tar.bz2
Compile with very old Boost filesystem (e.g. 1.42)
Change-Id: I547fd937e1563f8c7615f75b5ca9bb985e85a472
-rw-r--r--Swiften/Base/BoostFilesystemVersion.h10
-rw-r--r--Swiften/FileTransfer/FileTransferManagerImpl.cpp2
-rw-r--r--Swiftob/LuaCommands.cpp2
3 files changed, 14 insertions, 0 deletions
diff --git a/Swiften/Base/BoostFilesystemVersion.h b/Swiften/Base/BoostFilesystemVersion.h
new file mode 100644
index 0000000..1b1676c
--- /dev/null
+++ b/Swiften/Base/BoostFilesystemVersion.h
@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2010-2012 Kevin Smith
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+#pragma once
+
+#ifndef BOOST_FILESYSTEM_VERSION
+#define BOOST_FILESYSTEM_VERSION 2
+#endif
diff --git a/Swiften/FileTransfer/FileTransferManagerImpl.cpp b/Swiften/FileTransfer/FileTransferManagerImpl.cpp
index 7fd8b07..84b2061 100644
--- a/Swiften/FileTransfer/FileTransferManagerImpl.cpp
+++ b/Swiften/FileTransfer/FileTransferManagerImpl.cpp
@@ -29,6 +29,8 @@
#include <Swiften/Network/HostAddress.h>
#include <Swiften/Network/NATTraverser.h>
+#include <Swiften/Base/BoostFilesystemVersion.h>
+
namespace Swift {
FileTransferManagerImpl::FileTransferManagerImpl(const JID& ownFullJID, JingleSessionManager* jingleSessionManager, IQRouter* router, EntityCapsProvider* capsProvider, PresenceOracle* presOracle, ConnectionFactory* connectionFactory, ConnectionServerFactory* connectionServerFactory, TimerFactory* timerFactory, NATTraverser* natTraverser) : ownJID(ownFullJID), jingleSM(jingleSessionManager), iqRouter(router), capsProvider(capsProvider), presenceOracle(presOracle), connectionServerFactory(connectionServerFactory), bytestreamServer(NULL), s5bProxyFinder(NULL) {
diff --git a/Swiftob/LuaCommands.cpp b/Swiftob/LuaCommands.cpp
index 89f5159..d27c131 100644
--- a/Swiftob/LuaCommands.cpp
+++ b/Swiftob/LuaCommands.cpp
@@ -18,6 +18,8 @@
#include <Swiftob/Commands.h>
+#include <Swiften/Base/BoostFilesystemVersion.h>
+
#define LUA_COMMANDS "__Lua_Commands"
#define STORAGE "__Storage"