aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2015-09-09 18:52:47 -0300
committerJuan Linietsky2015-09-09 18:52:47 -0300
commit4e8dcc8938928864aaab2c70e594dd1f35a40167 (patch)
treed35c176121eb8b4d1446fb9a888550b107e883d5 /drivers/unix/os_unix.cpp
parent97413746173b4f872e8c72eba0e58d7092a93269 (diff)
parente3e93da6b94cdf14e9a6f466cf5f50a857166928 (diff)
downloadgodot-4e8dcc8938928864aaab2c70e594dd1f35a40167.tar.gz
godot-4e8dcc8938928864aaab2c70e594dd1f35a40167.tar.zst
godot-4e8dcc8938928864aaab2c70e594dd1f35a40167.zip
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r--drivers/unix/os_unix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index 314e13cee..05af7ee90 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -226,7 +226,8 @@ uint64_t OS_Unix::get_unix_time() const {
uint64_t OS_Unix::get_system_time_msec() const {
struct timeval tv_now;
gettimeofday(&tv_now, NULL);
- localtime(&tv_now.tv_usec);
+ //localtime(&tv_now.tv_usec);
+ localtime((const long *)&tv_now.tv_usec);
uint64_t msec = tv_now.tv_usec/1000;
return msec;
}