diff options
Diffstat (limited to 'net-p2p/libtorrent-rasterbar-14/files/patch-src__storage.cpp')
-rw-r--r-- | net-p2p/libtorrent-rasterbar-14/files/patch-src__storage.cpp | 112 |
1 files changed, 0 insertions, 112 deletions
diff --git a/net-p2p/libtorrent-rasterbar-14/files/patch-src__storage.cpp b/net-p2p/libtorrent-rasterbar-14/files/patch-src__storage.cpp deleted file mode 100644 index 700b77976501..000000000000 --- a/net-p2p/libtorrent-rasterbar-14/files/patch-src__storage.cpp +++ /dev/null @@ -1,112 +0,0 @@ ---- src/storage.cpp.orig 2009-04-13 02:37:54.000000000 +0900 -+++ src/storage.cpp 2009-04-29 15:56:16.000000000 +0900 -@@ -53,7 +53,7 @@ - #include <boost/multi_index_container.hpp> - #include <boost/multi_index/member.hpp> - #include <boost/multi_index/ordered_index.hpp> --#if BOOST_VERSION >= 103500 -+#if 0 // BOOST_VERSION >= 103500 - #include <boost/system/system_error.hpp> - #endif - -@@ -185,15 +185,15 @@ - } - #ifndef BOOST_NO_EXCEPTIONS - } --#if BOOST_VERSION >= 103500 -+#if 0 // BOOST_VERSION >= 103500 - catch (boost::system::system_error& e) - { - ec = e.code(); - } - #else -- catch (boost::filesystem::filesystem_error& e) -+ catch (std::exception& e) - { -- ec = error_code(e.system_error(), get_system_category()); -+ ec = error_code(errno, get_posix_category()); - } - #endif // BOOST_VERSION - #endif // BOOST_NO_EXCEPTIONS -@@ -458,17 +458,17 @@ - } - #ifndef BOOST_NO_EXCEPTIONS - } --#if BOOST_VERSION >= 103500 -+#if 0 // BOOST_VERSION >= 103500 - catch (boost::system::system_error& e) - { - set_error(m_save_path / file_iter->path, e.code()); - return true; - } - #else -- catch (boost::filesystem::filesystem_error& e) -+ catch (std::exception& e) - { - set_error(m_save_path / file_iter->path -- , error_code(e.system_error(), get_system_category())); -+ , error_code(errno, get_posix_category())); - return true; - } - #endif // BOOST_VERSION -@@ -501,16 +501,16 @@ - #endif - #ifndef BOOST_NO_EXCEPTIONS - } --#if BOOST_VERSION >= 103500 -+#if 0 // BOOST_VERSION >= 103500 - catch (boost::system::system_error& e) - { - set_error(f, e.code()); - return false; - } - #else -- catch (boost::filesystem::filesystem_error& e) -+ catch (std::exception& e) - { -- set_error(f, error_code(e.system_error(), get_system_category())); -+ set_error(f, error_code(errno, get_posix_category())); - return false; - } - #endif // BOOST_VERSION -@@ -558,17 +558,17 @@ - m_mapped_files->rename_file(index, new_filename); - #ifndef BOOST_NO_EXCEPTIONS - } --#if BOOST_VERSION >= 103500 -+#if 0 // BOOST_VERSION >= 103500 - catch (boost::system::system_error& e) - { - set_error(old_name, e.code()); - return true; - } - #else -- catch (boost::filesystem::filesystem_error& e) -+ catch (std::exception& e) - { -- set_error(old_name, error_code(e.system_error() -- , get_system_category())); -+ set_error(old_name, error_code(errno -+ , get_posix_category())); - return true; - } - #endif // BOOST_VERSION -@@ -591,15 +591,15 @@ - #endif - { fs::remove(safe_convert(p)); } - #ifndef BOOST_NO_EXCEPTIONS --#if BOOST_VERSION >= 103500 -+#if 0 // BOOST_VERSION >= 103500 - catch (boost::system::system_error& e) - { - set_error(p, e.code()); - } - #else -- catch (boost::filesystem::filesystem_error& e) -+ catch (std::exception& e) - { -- set_error(p, error_code(e.system_error(), get_system_category())); -+ set_error(p, errno, get_posix_category())); - } - #endif // BOOST_VERSION - #endif // BOOST_NO_EXCEPTIONS |