# # patch "unix/fs.cc" # from [9f93398a3edcfc1d2246c26627c9ebf1cd72f2c6] # to [1bb3dcff181451829c42a1d34c1111d486437fda] # ======================================================================== --- unix/fs.cc 9f93398a3edcfc1d2246c26627c9ebf1cd72f2c6 +++ unix/fs.cc 1bb3dcff181451829c42a1d34c1111d486437fda @@ -9,6 +9,7 @@ #include #include #include +#include #include #include @@ -21,14 +22,14 @@ { char buffer[4096]; E(getcwd(buffer, 4096), - F("cannot get working directory: %s") % strerror(errno)); + F("cannot get working directory: %s") % std::strerror(errno)); return std::string(buffer); } void change_current_working_dir(any_path const & to) { E(!chdir(to.as_external().c_str()), - F("cannot change to directory %s: %s") % to % strerror(errno)); + F("cannot change to directory %s: %s") % to % std::strerror(errno)); } // FIXME: BUG: this probably mangles character sets @@ -91,7 +92,7 @@ if (errno == ENOENT) return path::nonexistent; else - E(false, F("error accessing file %s: %s") % path % strerror(errno)); + E(false, F("error accessing file %s: %s") % path % std::strerror(errno)); } if (S_ISREG(buf.st_mode)) return path::file;