Update gpsd patches for gpspipe building, per Brad Midgley
[gumsense-br.git] / package / gpsd / gpsd-no-rintf.patch
blob1981bd7a067d31371136ffdd7fcec9c97023ba68
1 --- gpsd-2.33-orig/gpsd.h 2006-06-09 07:11:55.000000000 -0600
2 +++ gpsd-2.33/gpsd.h 2006-08-25 16:48:18.000000000 -0600
3 @@ -337,7 +337,7 @@
4 /* some OSes don't have round(). fake it if need be */
5 #ifndef HAVE_ROUND
6 #define round(x) ((double)rint(x))
7 -#define roundf(x) ((float)rintf(x))
8 +#define roundf(x) ((float)rint((double)x))
9 #endif /* !HAVE_ROUND */
11 /* OpenBSD and FreeBSD and Cygwin don't seem to have NAN, NetBSD does, others? */