Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1755)

Unified Diff: base/os_compat_android.h

Issue 7701014: Upstream misc changes for android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address the comment Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/message_pump_android.cc ('k') | base/path_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/os_compat_android.h
diff --git a/base/os_compat_android.h b/base/os_compat_android.h
index fb69efa005c380c40109c0c71d9776a70cc1a3cf..af6e1677286edfe4ba11b5967135083f76377853 100644
--- a/base/os_compat_android.h
+++ b/base/os_compat_android.h
@@ -8,6 +8,7 @@
#include <fcntl.h>
#include <sys/types.h>
+#include <time64.h>
#include <utime.h>
// Not implemented in Bionic. See platform_file_android.cc.
@@ -23,4 +24,9 @@ inline int lockf(int fd, int cmd, off_t ignored_len) {
return flock(fd, cmd);
}
+// Android has only timegm64() and no timegm().
+inline time_t timegm(struct tm* const tmp) {
+ return static_cast<time_t>(timegm64(tmp));
+}
+
#endif // BASE_OS_COMPAT_ANDROID_H_
« no previous file with comments | « base/message_pump_android.cc ('k') | base/path_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698