From d38f6d1111dda81ec4c5bbf0e3c95a128ff77e62 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Tue, 6 Nov 2012 17:31:15 +0000
Subject: Compile with very old Boost filesystem (e.g. 1.42)

Change-Id: I547fd937e1563f8c7615f75b5ca9bb985e85a472

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"
 
-- 
cgit v0.10.2-6-g49f6