#include "fs_extras.h"
#include <boost/filesystem/config.hpp>
-#include <boost/filesystem/exception.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/throw_exception.hpp>
#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.
filesystem_path_error(
"boost::filesystem::copy_file",
source, target,
- fs::detail::system_error_code(errno)));
+ fs::lookup_error_code(errno)));
}
#endif
}