mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Mingw also doesn't have st_blksize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51fe650c58
commit
b4741a7225
@ -372,7 +372,7 @@ uint64_t raw_fd_ostream::seek(uint64_t off) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t raw_fd_ostream::preferred_buffer_size() {
|
size_t raw_fd_ostream::preferred_buffer_size() {
|
||||||
#if !defined(_MSC_VER) // Windows reportedly doesn't have st_blksize.
|
#if !defined(_MSC_VER) && !defined(__MINGW32__) // Windows has no st_blksize.
|
||||||
assert(FD >= 0 && "File not yet open!");
|
assert(FD >= 0 && "File not yet open!");
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
if (fstat(FD, &statbuf) == 0) {
|
if (fstat(FD, &statbuf) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user