0004-packet_states.h-fix-isync-build-without-NMEA.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From a6561fbf2a53972e552b1619c8711092c72c2199 Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Sun, 9 Jun 2019 11:52:55 +0200
  4. Subject: [PATCH] packet_states.h: fix isync build without NMEA
  5. Build fails if isync is enabled without nmea because NMEA_DOLLAR is not
  6. defined.
  7. Fix this build failure by always defining NMEA_DOLLAR
  8. Fixes:
  9. - http://autobuild.buildroot.org/results/7757ff82623eb5db8cbd9cdf69baf308fd0b0666
  10. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  11. [Upstream status: https://gitlab.com/gpsd/gpsd/merge_requests/11]
  12. ---
  13. packet_states.h | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/packet_states.h b/packet_states.h
  16. index 4c3a3208..0adbeb1d 100644
  17. --- a/packet_states.h
  18. +++ b/packet_states.h
  19. @@ -3,9 +3,9 @@
  20. COMMENT_BODY, /* pound comment for a test load */
  21. COMMENT_RECOGNIZED, /* comment recognized */
  22. + NMEA_DOLLAR, /* we've seen first character of NMEA leader */
  23. #ifdef NMEA0183_ENABLE
  24. - NMEA_DOLLAR, /* we've seen first character of NMEA leader */
  25. NMEA_BANG, /* we've seen first character of an AIS message '!' */
  26. NMEA_PUB_LEAD, /* seen second character of NMEA G leader */
  27. NMEA_VENDOR_LEAD, /* seen second character of NMEA P leader */
  28. --
  29. 2.20.1