GNOME Bugzilla – Bug 583285
trunc() used, but not checked for
Last modified: 2010-01-29 01:29:07 UTC
In gnome-screensaver-2.26.1, savers/floaters.c uses trunc(). This function doesn't exist on all systems (e.g. DragonFly BSD or older NetBSD releases). The configure script doesn't check for it. Compilation fails. Configure should check for trunc() and replace it if not found. On the mentioned systems, trunc() could e.g. get replaced with #define trunc(x) ((double)floor(x)).
Thanks. I think this should do it. Fixed in 2.28 and master. commit 6283ea74ff42ba4a459fc16449078ddfe4ece82f Author: William Jon McCann <jmccann@redhat.com> Date: Thu Jan 28 20:19:09 2010 -0500 Define a trunc macro for systems that don't have one Fixes https://bugzilla.gnome.org/show_bug.cgi?id=583285
*** Bug 525844 has been marked as a duplicate of this bug. ***