Improve support for non-POSIX platforms more

This commit is contained in:
Victor Zverovich
2024-07-08 14:00:00 -07:00
parent 486838f26f
commit 92227c77a4
2 changed files with 18 additions and 7 deletions
+4 -1
View File
@@ -192,7 +192,10 @@ class file_scan_buffer final : public scan_buffer {
flockfile(f);
fill();
}
~file_scan_buffer() { funlockfile(file_); }
~file_scan_buffer() {
FILE* f = file_;
funlockfile(f);
}
};
} // namespace detail