From: Steve Langasek Date: Fri, 28 Jun 2013 17:52:59 +0000 (-0700) Subject: script: include head with prototype of ply_get_timestamp() X-Git-Tag: 0.9.0~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88c30d233fc778d25eb76e51a4c86c60263c9d65;p=thirdparty%2Fplymouth.git script: include head with prototype of ply_get_timestamp() ply_get_timestamp() returns a double, but the compiler assumes it will return an int if ply-utils.h isn't #included. This disparity between what gets returned and what the compiler is expecting will be returned causes astonishing knock-on effects (the label plugin fails to display any text). See: https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/1187318 and http://lists.freedesktop.org/archives/plymouth/2013-June/000733.html --- diff --git a/src/plugins/splash/script/script-lib-math.c b/src/plugins/splash/script/script-lib-math.c index 1a07b048..3f2dc797 100644 --- a/src/plugins/splash/script/script-lib-math.c +++ b/src/plugins/splash/script/script-lib-math.c @@ -22,6 +22,7 @@ #include "config.h" +#include "ply-utils.h" #include "script.h" #include "script-parse.h" #include "script-execute.h"