vcpkg, memory mapped file.

This commit is contained in:
Dario 2024-12-16 13:18:54 -03:00
parent 3a5a0142cc
commit 48bc79f6b1
2 changed files with 4 additions and 4 deletions

View file

@ -97,7 +97,7 @@ bool MemoryMappedFile::open(const std::filesystem::path &path)
if (fileSize == (off_t)(-1)) if (fileSize == (off_t)(-1))
{ {
fprintf(stderr, "lseek failed with error %s.\n", strerror(errno)); fprintf(stderr, "lseek failed with error %s.\n", strerror(errno));
close(fileHandle); ::close(fileHandle);
fileHandle = -1; fileHandle = -1;
return false; return false;
} }
@ -106,7 +106,7 @@ bool MemoryMappedFile::open(const std::filesystem::path &path)
if (fileView == MAP_FAILED) if (fileView == MAP_FAILED)
{ {
fprintf(stderr, "mmap failed with error %s.\n", strerror(errno)); fprintf(stderr, "mmap failed with error %s.\n", strerror(errno));
close(fileHandle); ::close(fileHandle);
fileHandle = -1; fileHandle = -1;
return false; return false;
} }
@ -140,7 +140,7 @@ void MemoryMappedFile::close()
if (fileHandle != -1) if (fileHandle != -1)
{ {
close(fileHandle); ::close(fileHandle);
} }
#endif #endif
} }

2
thirdparty/vcpkg vendored

@ -1 +1 @@
Subproject commit e63bd09dc0b7204467705c1c7c71d0e2a3f8860b Subproject commit 5b55679a998403bcd570c0eb867a8bd378f21bcb