Update talk to 59039880.
R=mallinath@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/6569004
git-svn-id: http://webrtc.googlecode.com/svn/trunk@5339 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/talk/base/unixfilesystem.cc b/talk/base/unixfilesystem.cc
index 74168f2..3c8f4d2 100644
--- a/talk/base/unixfilesystem.cc
+++ b/talk/base/unixfilesystem.cc
@@ -42,21 +42,26 @@
#if defined(POSIX) && !defined(OSX)
#include <sys/types.h>
-#ifdef ANDROID
+#if defined(ANDROID)
#include <sys/statfs.h>
-#else
+#elif !defined(__native_client__)
#include <sys/statvfs.h>
-#endif // ANDROID
+#endif // !defined(__native_client__)
+#include <limits.h>
#include <pwd.h>
#include <stdio.h>
#include <unistd.h>
#endif // POSIX && !OSX
-#ifdef LINUX
+#if defined(LINUX)
#include <ctype.h>
#include <algorithm>
#endif
+#if defined(__native_client__) && !defined(__GLIBC__)
+#include <sys/syslimits.h>
+#endif
+
#include "talk/base/fileutils.h"
#include "talk/base/pathutils.h"
#include "talk/base/stream.h"
@@ -489,6 +494,9 @@
}
bool UnixFilesystem::GetDiskFreeSpace(const Pathname& path, int64 *freebytes) {
+#ifdef __native_client__
+ return false;
+#else // __native_client__
ASSERT(NULL != freebytes);
// TODO: Consider making relative paths absolute using cwd.
// TODO: When popping off a symlink, push back on the components of the
@@ -515,6 +523,7 @@
#endif
return true;
+#endif // !__native_client__
}
Pathname UnixFilesystem::GetCurrentDirectory() {