diff options
author | dgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-04-21 01:54:51 +0000 |
---|---|---|
committer | dgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-04-21 01:54:51 +0000 |
commit | be9f061d2fd5e2d66ba17a70c135a153c584c8c1 (patch) | |
tree | 1d0bd49e507b8ccb2d5f2d44b7d028db123a4fbf /util | |
parent | ccb2cbef3aa60e19da135bba01ac4aba7697661d (diff) | |
download | leveldb-be9f061d2fd5e2d66ba17a70c135a153c584c8c1.tar.gz |
pull in hans' mac build fix
git-svn-id: https://leveldb.googlecode.com/svn/trunk@26 62dab493-f737-651d-591e-8d6aee1b9529
Diffstat (limited to 'util')
-rw-r--r-- | util/env_chromium.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/env_chromium.cc b/util/env_chromium.cc index 7edc7a9..fd3a4c7 100644 --- a/util/env_chromium.cc +++ b/util/env_chromium.cc @@ -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 |