--- gpsd-2.29/gpsd.h 2005-08-16 16:39:33.000000000 -0700 +++ gpsd-2.29/gpsd.h-new 2005-09-02 23:05:34.000000000 -0700 @@ -326,7 +326,7 @@ /* some OSes don't have round(). fake it if need be */ #ifndef HAVE_ROUND #define round(x) ((double)rint(x)) -#define roundf(x) ((float)rintf(x)) +#define roundf(x) ((float)rint((double)x)) #endif /* !HAVE_ROUND */ /* OpenBSD and FreeBSD don't seem to have NAN, NetBSD does, others? */