From be9f061d2fd5e2d66ba17a70c135a153c584c8c1 Mon Sep 17 00:00:00 2001 From: "dgrogan@chromium.org" Date: Thu, 21 Apr 2011 01:54:51 +0000 Subject: [PATCH] pull in hans' mac build fix git-svn-id: https://leveldb.googlecode.com/svn/trunk@26 62dab493-f737-651d-591e-8d6aee1b9529 --- util/env_chromium.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util/env_chromium.cc b/util/env_chromium.cc index 7edc7a9ce..fd3a4c76d 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