diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx index 51941cb70..df412b12b 100644 --- a/src/fs/Traits.hxx +++ b/src/fs/Traits.hxx @@ -29,6 +29,7 @@ #include +#include #include /** @@ -79,6 +80,11 @@ struct PathTraits { return IsSeparatorUTF8(*p); } + gcc_pure + static size_t GetLengthFS(const_pointer p) { + return strlen(p); + } + /** * Determine the "base" file name of the given UTF-8 path. * The return value points inside the given string.