From ffc95162ecdcf9bdaecfc3ebb6ba970e1a74aedb Mon Sep 17 00:00:00 2001 From: Shin-ya Murakami Date: Wed, 1 Mar 2017 16:30:03 +0900 Subject: [PATCH] fix for FreeBSD --- code/DefaultIOStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/DefaultIOStream.cpp b/code/DefaultIOStream.cpp index 1907709e3..ddb17881f 100644 --- a/code/DefaultIOStream.cpp +++ b/code/DefaultIOStream.cpp @@ -126,7 +126,7 @@ size_t DefaultIOStream::FileSize() const if (0 != err) return 0; mCachedSize = (size_t) (fileStat.st_size); -#elif defined __GNUC__ || defined __APPLE__ || defined __MACH__ +#elif defined __GNUC__ || defined __APPLE__ || defined __MACH__ || defined __FreeBSD__ struct stat fileStat; int err = stat(mFilename.c_str(), &fileStat ); if (0 != err)