xref: /OK3568_Linux_fs/buildroot/package/mraa/0001-include-Declare-gVERSION-global-as-extern.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFrom dbb5961f106ec42cd70689d933674c9c37aedfe1 Mon Sep 17 00:00:00 2001
2*4882a593SmuzhiyunFrom: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
3*4882a593SmuzhiyunDate: Mon, 13 Apr 2020 20:12:11 +0200
4*4882a593SmuzhiyunSubject: [PATCH] include: Declare gVERSION global as 'extern'.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunFixes build with '-fno-common'.
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun[Retrieved from:
9*4882a593Smuzhiyunhttps://github.com/eclipse/mraa/pull/1012/commits/dbb5961f106ec42cd70689d933674c9c37aedfe1]
10*4882a593SmuzhiyunSigned-off-by: Fabrice Fontaine <fontaine.fabrice@gmaail.com>
11*4882a593Smuzhiyun---
12*4882a593Smuzhiyun include/version.h | 4 ++--
13*4882a593Smuzhiyun 1 file changed, 2 insertions(+), 2 deletions(-)
14*4882a593Smuzhiyun
15*4882a593Smuzhiyundiff --git a/include/version.h b/include/version.h
16*4882a593Smuzhiyunindex 47366ef6f..3a567a1d5 100644
17*4882a593Smuzhiyun--- a/include/version.h
18*4882a593Smuzhiyun+++ b/include/version.h
19*4882a593Smuzhiyun@@ -11,8 +11,8 @@
20*4882a593Smuzhiyun extern "C" {
21*4882a593Smuzhiyun #endif
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun-const char* gVERSION;
24*4882a593Smuzhiyun-const char* gVERSION_SHORT;
25*4882a593Smuzhiyun+extern const char* gVERSION;
26*4882a593Smuzhiyun+extern const char* gVERSION_SHORT;
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun #ifdef __cplusplus
29*4882a593Smuzhiyun }
30