Merge pull request #1193 from murashin/fix-for-freebsd

fix for FreeBSD
pull/1194/head
Kim Kulling 2017-03-01 12:52:52 +01:00 committed by GitHub
commit 8dd137cb3f
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ size_t DefaultIOStream::FileSize() const
if (0 != err) if (0 != err)
return 0; return 0;
mCachedSize = (size_t) (fileStat.st_size); 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; struct stat fileStat;
int err = stat(mFilename.c_str(), &fileStat ); int err = stat(mFilename.c_str(), &fileStat );
if (0 != err) if (0 != err)