aboutsummaryrefslogtreecommitdiffstats
path: root/print
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2009-04-07 20:24:28 +0800
committerlwhsu <lwhsu@FreeBSD.org>2009-04-07 20:24:28 +0800
commitbb809c3e399e3acae3f9d37f387b6240f3a53894 (patch)
treefcfd2a64904d77e20e48095f889cddc83fb6174f /print
parenta43bd2700e971590faa758529231b78d7b6a29a9 (diff)
downloadfreebsd-ports-gnome-bb809c3e399e3acae3f9d37f387b6240f3a53894.tar.gz
freebsd-ports-gnome-bb809c3e399e3acae3f9d37f387b6240f3a53894.tar.zst
freebsd-ports-gnome-bb809c3e399e3acae3f9d37f387b6240f3a53894.zip
- Fix building with boost 1.37
PR: ports/133040 Submitted by: amdmi3
Diffstat (limited to 'print')
-rw-r--r--print/lyx15/files/patch-src-support-fs_extras.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/print/lyx15/files/patch-src-support-fs_extras.cpp b/print/lyx15/files/patch-src-support-fs_extras.cpp
new file mode 100644
index 000000000000..58ba380fa744
--- /dev/null
+++ b/print/lyx15/files/patch-src-support-fs_extras.cpp
@@ -0,0 +1,54 @@
+--- src/support/fs_extras.cpp.orig 2007-05-29 02:27:45.000000000 +0400
++++ src/support/fs_extras.cpp 2009-03-23 17:40:47.000000000 +0300
+@@ -97,10 +97,10 @@
+ int const infile = ::open(source.string().c_str(), O_RDONLY);
+ if (infile == -1) {
+ boost::throw_exception(
+- filesystem_path_error(
++ basic_filesystem_error<path>(
+ "boost::filesystem::copy_file",
+ source, target,
+- fs::lookup_errno(errno)));
++ boost::system::error_code(errno, boost::system::get_system_category())));
+ }
+
+ struct stat source_stat;
+@@ -108,10 +108,10 @@
+ if (ret == -1) {
+ int err = errno;
+ ::close(infile);
+- boost::throw_exception(filesystem_path_error(
++ boost::throw_exception(basic_filesystem_error<path>(
+ "boost::filesystem::copy_file",
+ source, target,
+- fs::lookup_errno(err)));
++ boost::system::error_code(err, boost::system::get_system_category())));
+ }
+
+ int const flags = O_WRONLY | O_CREAT | (noclobber ? O_EXCL : O_TRUNC);
+@@ -121,10 +121,10 @@
+ int err = errno;
+ ::close(infile);
+ boost::throw_exception(
+- filesystem_path_error(
++ basic_filesystem_error<path>(
+ "boost::filesystem::copy_file",
+ source, target,
+- fs::lookup_errno(err)));
++ boost::system::error_code(err, boost::system::get_system_category())));
+ }
+
+ std::size_t const buf_sz = 32768;
+@@ -153,10 +153,10 @@
+
+ if (in == -1 || out == -1)
+ boost::throw_exception(
+- filesystem_path_error(
++ basic_filesystem_error<path>(
+ "boost::filesystem::copy_file",
+ source, target,
+- fs::lookup_errno(err)));
++ boost::system::error_code(err, boost::system::get_system_category())));
+ #endif
+ #ifdef BOOST_WINDOWS
+ if (::CopyFile(source.string().c_str(), target.string().c_str(), noclobber) == 0) {