0001-include-Declare-gVERSION-global-as-extern.patch 843 B

1234567891011121314151617181920212223242526272829
  1. From dbb5961f106ec42cd70689d933674c9c37aedfe1 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
  3. Date: Mon, 13 Apr 2020 20:12:11 +0200
  4. Subject: [PATCH] include: Declare gVERSION global as 'extern'.
  5. Fixes build with '-fno-common'.
  6. [Retrieved from:
  7. https://github.com/eclipse/mraa/pull/1012/commits/dbb5961f106ec42cd70689d933674c9c37aedfe1]
  8. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmaail.com>
  9. ---
  10. include/version.h | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/include/version.h b/include/version.h
  13. index 47366ef6f..3a567a1d5 100644
  14. --- a/include/version.h
  15. +++ b/include/version.h
  16. @@ -11,8 +11,8 @@
  17. extern "C" {
  18. #endif
  19. -const char* gVERSION;
  20. -const char* gVERSION_SHORT;
  21. +extern const char* gVERSION;
  22. +extern const char* gVERSION_SHORT;
  23. #ifdef __cplusplus
  24. }