diff --git a/AK/MappedFile.cpp b/AK/MappedFile.cpp index 87af44be9c..68e2a7abfb 100644 --- a/AK/MappedFile.cpp +++ b/AK/MappedFile.cpp @@ -1,3 +1,4 @@ +#include #include #include #include @@ -12,7 +13,7 @@ namespace AK { MappedFile::MappedFile(const StringView& file_name) { m_size = PAGE_SIZE; - m_fd = open(file_name.characters(), O_RDONLY | O_CLOEXEC); + m_fd = open(String(file_name).characters(), O_RDONLY | O_CLOEXEC); if (m_fd != -1) { struct stat st;