$OpenBSD: patch-src_gpspoint_c,v 1.4 2020/02/04 11:53:28 landry Exp $
taken from pkgsrc/geography/viking/patch-aa
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=40695
Index: src/gpspoint.c
--- src/gpspoint.c.orig
+++ src/gpspoint.c
@@ -79,8 +79,8 @@ static gdouble line_altitude = NAN;
 static gboolean line_visible = TRUE;
 
 static gboolean line_extended = FALSE;
-static gdouble line_speed = NAN;
-static gdouble line_course = NAN;
+static gdouble line_speed = __builtin_nanf("");
+static gdouble line_course = __builtin_nanf("");
 static gint line_sat = 0;
 static gint line_fix = 0;
 static gdouble line_hdop = NAN;
