=================================================================== RCS file: /cvs/ports/geo/viking/patches/Attic/patch-src_gpspoint_c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- ports/geo/viking/patches/Attic/patch-src_gpspoint_c 2009/06/11 19:26:37 1.1 +++ ports/geo/viking/patches/Attic/patch-src_gpspoint_c 2010/06/03 10:09:56 1.2 @@ -1,27 +1,14 @@ -$OpenBSD: patch-src_gpspoint_c,v 1.1 2009/06/11 18:26:37 yason Exp $ ---- src/gpspoint.c.orig Sun Feb 8 16:47:01 2009 -+++ src/gpspoint.c Thu Jun 11 22:09:27 2009 -@@ -81,8 +81,9 @@ static gdouble line_altitude = VIK_DEFAULT_ALTITUDE; +$OpenBSD: patch-src_gpspoint_c,v 1.2 2010/06/03 09:09:56 yason Exp $ +--- src/gpspoint.c.orig Thu Jan 14 23:19:52 2010 ++++ src/gpspoint.c Thu Jun 3 14:30:57 2010 +@@ -81,8 +81,8 @@ static gdouble line_altitude = VIK_DEFAULT_ALTITUDE; static gboolean line_visible = TRUE; static gboolean line_extended = FALSE; -static gdouble line_speed = NAN; -static gdouble line_course = NAN; -+/* I'm not shure this is a good way of doing things */ -+static gdouble line_speed = 0; -+static gdouble line_course = 0; ++static gdouble line_speed = __builtin_nanf(""); ++static gdouble line_course = __builtin_nanf(""); static gint line_sat = 0; static gint line_fix = 0; /* other possible properties go here */ -@@ -293,8 +294,9 @@ void a_gpspoint_read_file(VikTrwLayer *trw, FILE *f ) - line_symbol = NULL; - - line_extended = FALSE; -- line_speed = NAN; -- line_course = NAN; -+/* I'm not shure this is a good way of doing things */ -+ line_speed = 0; -+ line_course = 0; - line_sat = 0; - line_fix = 0; - }