- unix compile fix

svn path=/trunk/boinc/; revision=20949
This commit is contained in:
David Anderson 2010-03-18 19:56:20 +00:00
parent 6449eb1ec4
commit 86c061425d
1 changed files with 4 additions and 0 deletions

View File

@ -57,8 +57,12 @@ int MFILE::open(const char* path, const char* mode) {
// seems like Win's realloc is stupid, Make it smart.
//
static inline char* realloc_aux(char* p, int len) {
#ifdef _WIN32
if (_msize(p) >= len) return p;
return (char*) realloc(p, len*2);
#else
return (char*) realloc(p, len);
#endif
}
#define BUFSIZE 100000