diff --git a/src/libfetchers/git-accessor.cc b/src/libfetchers/git-accessor.cc index c50e4355a..68a2de8f8 100644 --- a/src/libfetchers/git-accessor.cc +++ b/src/libfetchers/git-accessor.cc @@ -1,7 +1,7 @@ #include "git-utils.hh" #include "input-accessor.hh" -#include +#include #include #include @@ -284,7 +284,7 @@ TarballInfo importTarball(Source & source) throw Error("adding a file to a tree builder: %s", git_error_last()->message); }; - auto updateBuilders = [&](std::span names) + auto updateBuilders = [&](boost::span names) { // Find the common prefix of pendingDirs and names. size_t prefixLen = 0; @@ -327,7 +327,7 @@ TarballInfo importTarball(Source & source) auto pathComponents = tokenizeString>(path, "/"); - std::span pathComponents2{pathComponents}; + boost::span pathComponents2{pathComponents}; if (pathComponents2.size() <= componentsToStrip) continue; pathComponents2 = pathComponents2.subspan(componentsToStrip);