summaryrefslogtreecommitdiffstats
path: root/base/os_compat_nacl.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-26 22:53:13 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-26 22:53:13 +0000
commit1968d9778f74daa4056ddc5a18aeac5061d0314b (patch)
tree617c16cdb81229734e92aa908bbbd7a4923088be /base/os_compat_nacl.cc
parenta24417742faf535b1a616984b03dcf8258b9f818 (diff)
downloadchromium_src-1968d9778f74daa4056ddc5a18aeac5061d0314b.zip
chromium_src-1968d9778f74daa4056ddc5a18aeac5061d0314b.tar.gz
chromium_src-1968d9778f74daa4056ddc5a18aeac5061d0314b.tar.bz2
Enable parts of base_untrusted that are used by remoting client
1. base64, rand_util, threading, time and threads were previosly disabled in base_untrusted. Remoting code depends on these parts of base, so they need to be enabled. 2. Implemented NaCl version of rand_util. 3. Enabled glibc version of base_untrusted BUG=134216 Review URL: https://chromiumcodereview.appspot.com/10795083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/os_compat_nacl.cc')
-rw-r--r--base/os_compat_nacl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/os_compat_nacl.cc b/base/os_compat_nacl.cc
index d38f9e0..58fe93e 100644
--- a/base/os_compat_nacl.cc
+++ b/base/os_compat_nacl.cc
@@ -7,6 +7,8 @@
#include <stdlib.h>
#include <time.h>
+#if !defined (__GLIBC__)
+
extern "C" {
// Native Client has no timegm().
time_t timegm(struct tm* tm) {
@@ -25,3 +27,4 @@ time_t timegm(struct tm* tm) {
}
} // extern "C"
+#endif // !defined (__GLIBC__)