# # # patch "paths.cc" # from [0b51f4bf470ff0aab06189248b1ab344391ce4e4] # to [77c9f216d90f42b8b49d8348a0e4130600531d5d] # ============================================================ --- paths.cc 0b51f4bf470ff0aab06189248b1ab344391ce4e4 +++ paths.cc 77c9f216d90f42b8b49d8348a0e4130600531d5d @@ -501,6 +501,10 @@ any_path::basename() const { string const & s = data; string::size_type sep = s.rfind('/'); +#ifdef WIN32 + if (sep == string::npos && s[1] == ':') + sep = 1; +#endif if (sep == string::npos) return path_component(s, 0); // force use of short circuit if (sep == s.size())