Improve support for non-POSIX platforms more
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user