From 8035c3eb307b51fa29b82562385ccb7f9c55575e Mon Sep 17 00:00:00 2001 From: vitaut Date: Mon, 11 May 2015 08:44:40 -0700 Subject: [PATCH] Workaround a bug in the definition of fstat on some versions of MinGW --- test/posix-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/posix-test.cc b/test/posix-test.cc index 358ed84a..b2964e0f 100644 --- a/test/posix-test.cc +++ b/test/posix-test.cc @@ -87,7 +87,7 @@ typedef off_t FileSize; static FileSize max_file_size() { return std::numeric_limits::max(); } -int test::fstat(int fd, struct stat *buf) { +int (test::fstat)(int fd, struct stat *buf) { int result = ::fstat(fd, buf); if (fstat_sim == MAX_SIZE) buf->st_size = max_file_size();