diff --git a/io_win32.cpp b/io_win32.cpp index c27e2410..521c2fdd 100644 --- a/io_win32.cpp +++ b/io_win32.cpp @@ -140,7 +140,7 @@ mapped_file::mapped_file (const std::experimental::filesystem::path &path, //----------------------------------------------------------------------------- -mapped_file::mapped_file (const util::fd &src, +mapped_file::mapped_file (const util::posix::fd &src, int fflags, int mflags): mapped_file (util::win32::handle (reinterpret_cast (_get_osfhandle (src))), diff --git a/io_win32.hpp b/io_win32.hpp index 776eaedc..06197087 100644 --- a/io_win32.hpp +++ b/io_win32.hpp @@ -60,7 +60,7 @@ namespace util { mapped_file (const std::experimental::filesystem::path &path, int fflags = O_RDONLY, int mflags = PROT_READ); - mapped_file (const util::fd&, + mapped_file (const util::posix::fd&, int fflag = O_RDONLY, int mflags = PROT_READ);