Subject: Imlib2 upgrade broken (no lround function)
To: None <tech-pkg@netbsd.org>
From: Chris Wareham <chriswareham@chriswareham.demon.co.uk>
List: tech-pkg
Date: 01/13/2005 12:03:57
The recently upgraded Imlib2 (from 1.1.2 to 1.2.0) wont compile on my
NetBSD 2.0 machine. The file color_helpers.c uses an lround function
which would appear to have the following prototype:
long double lround(long double);
I checked the NetBSD CVS, and it doesn't look like there's an lround in
-current. By adding the function to my libm library (by copying the
source for the round function and simply changing all "double"
definitions to "long double"), I got Imlib2 to compile. I then checked a
copy of Harbison & Steele and I couldn't find a description of lround
there. Is it a part of C99 or in some amendment perhaps?
Chris