pull in hans' mac build fix

git-svn-id: https://leveldb.googlecode.com/svn/trunk@26 62dab493-f737-651d-591e-8d6aee1b9529
This commit is contained in:
dgrogan@chromium.org 2011-04-21 01:54:51 +00:00
parent ccb2cbef3a
commit be9f061d2f

View File

@ -31,7 +31,8 @@
#if defined(OS_MACOSX) || defined(OS_WIN)
// The following are glibc-specific
extern "C" {
namespace {
size_t fread_unlocked(void *ptr, size_t size, size_t n, FILE *file) {
return fread(ptr, size, n, file);
}
@ -51,6 +52,7 @@ int fdatasync(int fildes) {
return fsync(fildes);
#endif
}
}
#endif