Commit dbae17b2 authored by Kenton Varda's avatar Kenton Varda

Skip filesystem-disk.c++ on Windows.

Windows support will be implemented in a separate file.
parent dd734c75
......@@ -19,6 +19,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
#if !_WIN32
#include "filesystem.h"
#include "debug.h"
#include <sys/types.h>
......@@ -223,12 +225,7 @@ protected:
size_t capacity, void (*destroyElement)(void*)) const {
auto range = getMmapRange(reinterpret_cast<uintptr_t>(firstElement),
elementSize * elementCount);
#if _WIN32
KJ_ASSERT(UnmapViewOfFile(reinterpret_cast<byte*>(range.offset))) { break; }
#else
KJ_SYSCALL(munmap(reinterpret_cast<byte*>(range.offset), range.size)) { break; }
#endif
}
};
......@@ -1655,3 +1652,5 @@ Own<Filesystem> newDiskFilesystem() {
}
} // namespace kj
#endif // !_WIN32
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment