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:
sireus
2012-04-01 18:31:21 +00:00
parent 20ca7d0b45
commit 5137a271b2
+2 -2
View File
@@ -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'))
{