summaryrefslogtreecommitdiff
path: root/geography/viking/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'geography/viking/patches/patch-aa')
-rw-r--r--geography/viking/patches/patch-aa19
1 files changed, 19 insertions, 0 deletions
diff --git a/geography/viking/patches/patch-aa b/geography/viking/patches/patch-aa
new file mode 100644
index 00000000000..8772c38e0ed
--- /dev/null
+++ b/geography/viking/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/03/11 14:18:30 gdt Exp $
+
+--- src/gpspoint.c.orig 2009-02-08 14:47:01.000000000 +0100
++++ src/gpspoint.c
+@@ -81,8 +81,14 @@ static gdouble line_altitude = VIK_DEFAU
+ static gboolean line_visible = TRUE;
+
+ static gboolean line_extended = FALSE;
++/* Work around a bug in NetBSD. See PR standards/40695 */
++#if defined(__NetBSD__) && __GNUC_PREREQ__(3,3)
++static gdouble line_speed = __builtin_nanf("");
++static gdouble line_course = __builtin_nanf("");
++#else /* NetBSD */
+ static gdouble line_speed = NAN;
+ static gdouble line_course = NAN;
++#endif /* NetBSD */
+ static gint line_sat = 0;
+ static gint line_fix = 0;
+ /* other possible properties go here */