From 903a766d6ef14717ac8e02fc999fb87498fc9fb2 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Mon, 30 Apr 2018 10:17:24 +0200 Subject: [PATCH] godot: fix 32bit --- srcpkgs/godot/patches/fix-32bit.patch | 11 +++++++++++ srcpkgs/godot/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/godot/patches/fix-32bit.patch diff --git a/srcpkgs/godot/patches/fix-32bit.patch b/srcpkgs/godot/patches/fix-32bit.patch new file mode 100644 index 00000000000..4d3de12edb6 --- /dev/null +++ b/srcpkgs/godot/patches/fix-32bit.patch @@ -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) { + } + } diff --git a/srcpkgs/godot/template b/srcpkgs/godot/template index ed46cad1e66..3de021bd535 100644 --- a/srcpkgs/godot/template +++ b/srcpkgs/godot/template @@ -1,7 +1,7 @@ # Template file for 'godot' pkgname=godot version=3.0.2 -revision=1 +revision=2 wrksrc="${pkgname}-${version}-stable" build_style=scons hostmakedepends="scons pkg-config clang"