godot: fix 32bit

This commit is contained in:
Enno Boland 2018-04-30 10:17:24 +02:00
parent b214b24e91
commit 903a766d6e
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- drivers/unix/os_unix.cpp.orig 2018-04-30 09:53:04.627075270 +0200
+++ drivers/unix/os_unix.cpp 2018-04-30 09:53:16.892670422 +0200
@@ -235,7 +235,7 @@ OS::TimeZoneInfo OS_Unix::get_time_zone_
void OS_Unix::delay_usec(uint32_t p_usec) const {
- struct timespec rem = { p_usec / 1000000, (p_usec % 1000000) * 1000 };
+ struct timespec rem = { (time_t)(p_usec / 1000000), (long)(p_usec % 1000000) * 1000 };
while (nanosleep(&rem, &rem) == EINTR) {
}
}

View File

@ -1,7 +1,7 @@
# Template file for 'godot' # Template file for 'godot'
pkgname=godot pkgname=godot
version=3.0.2 version=3.0.2
revision=1 revision=2
wrksrc="${pkgname}-${version}-stable" wrksrc="${pkgname}-${version}-stable"
build_style=scons build_style=scons
hostmakedepends="scons pkg-config clang" hostmakedepends="scons pkg-config clang"