Description: Fix the version used for Windows resources
 The version generated for Windows resources included the number of
 days since January 1, 2000, and the fraction of day corresponding to
 the time of the build. This patch rounds the number of days down to
 the nearest integer.
Author: Stephen Kitt <steve@sk2.org>
Forwarded: no
Last-Update: 2010-08-05

--- wine-gecko-1.0.0.orig/config/version_win.pl
+++ wine-gecko-1.0.0/config/version_win.pl
@@ -54,8 +54,8 @@ sub daysFromBuildID
     $d || die("Unrecognized buildid string.");
 
     my $secondstodays = 60 * 60 * 24;
-    return (POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
-            POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays;
+    return int((POSIX::mktime(00, 00, 00, $d, $m - 1, $y - 1900) -
+            POSIX::mktime(00, 00, 00, 01, 00, 100)) / $secondstodays);
 }
 
 #Creates version resource file
