| 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_
|
|
|