]> git.lyx.org Git - lyx.git/blobdiff - src/support/fs_extras.C
MacOSX compile fix.
[lyx.git] / src / support / fs_extras.C
index ebfed6076635d32ff00d85703910922e00bb263c..5d2ab9aa5f9894016a7075f478f5c65d2592cea9 100644 (file)
@@ -14,7 +14,6 @@
 #include "fs_extras.h"
 
 #include <boost/filesystem/config.hpp>
-#include <boost/filesystem/exception.hpp>
 #include <boost/detail/workaround.hpp>
 #include <boost/throw_exception.hpp>
 
@@ -24,6 +23,7 @@
 #ifdef HAVE_SYS_STAT_H
 # include <sys/stat.h>
 #endif
+#include <cerrno>
 #include <fcntl.h>
 
 // BOOST_POSIX or BOOST_WINDOWS specify which API to use.
@@ -166,7 +166,7 @@ void copy_file(path const & source, path const & target, bool noclobber)
                        filesystem_path_error(
                                "boost::filesystem::copy_file",
                                source, target,
-                               fs::detail::system_error_code(errno)));
+                               fs::lookup_error_code(errno)));
        }
 #endif
 }