patch-src_gpspoint_c 685 B

1234567891011121314151617
  1. $OpenBSD: patch-src_gpspoint_c,v 1.2 2015/04/02 13:59:32 landry Exp $
  2. taken from pkgsrc/geography/viking/patch-aa
  3. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=40695
  4. --- src/gpspoint.c.orig Tue Oct 21 22:25:06 2014
  5. +++ src/gpspoint.c Thu Apr 2 15:01:24 2015
  6. @@ -88,8 +88,8 @@ static gdouble line_altitude = VIK_DEFAULT_ALTITUDE;
  7. static gboolean line_visible = TRUE;
  8. static gboolean line_extended = FALSE;
  9. -static gdouble line_speed = NAN;
  10. -static gdouble line_course = NAN;
  11. +static gdouble line_speed = __builtin_nanf("");
  12. +static gdouble line_course = __builtin_nanf("");
  13. static gint line_sat = 0;
  14. static gint line_fix = 0;
  15. /* other possible properties go here */