statvfs is posix-standardized
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6779 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -361,7 +361,7 @@ bool stream::getline(char *str, int len)
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
#ifndef WIN32
|
||||
#include <sys/statvfs.h>
|
||||
const int64_t MINFSSIZE = 50000000; // 50MB
|
||||
#endif
|
||||
@@ -377,7 +377,7 @@ struct filestream : stream
|
||||
{
|
||||
if(file) return false;
|
||||
file = fopen(name, mode);
|
||||
#ifdef __linux__
|
||||
#ifndef WIN32
|
||||
struct statvfs buf;
|
||||
if(file && strchr(mode,'w'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user