[Fix] Build issue when done with ASAN options 31/215231/1 accepted/tizen/unified/20191006.223655 submit/tizen/20191004.064542
authorNishant Chaprana <n.chaprana@samsung.com>
Thu, 3 Oct 2019 11:51:25 +0000 (17:21 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Thu, 3 Oct 2019 11:51:25 +0000 (17:21 +0530)
This patch fixes gbs build issue for clat when below extra-packs are used:-
    --extra-packs asan-force-options,asan-build-env,sanitizer-devel --define 'asan 1'

Change-Id: I001e673bfc917f4911a05e41579eda525b429d54
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
include/config.h
packaging/clat.spec
src/config.c

index 214cc49..ef521db 100644 (file)
@@ -37,7 +37,11 @@ struct clat_config {
   int use_dynamic_iid;
 };
 
+#ifndef TIZEN_EXT
 struct clat_config Global_Clatd_Config;
+#else /* TIZEN_EXT */
+extern struct clat_config Global_Clatd_Config;
+#endif /* TIZEN_EXT */
 
 int read_config(const char *file, const char *uplink_interface, const char *plat_prefix,
                 unsigned net_id);
index 93f9d34..c08bfb2 100644 (file)
@@ -1,7 +1,7 @@
 Name:          clat
 Summary:       CLAT Daemon
 Version:       1.4
-Release:       1
+Release:       2
 Source:        %{name}-%{version}.tar.gz
 Source1:       dbus-1/org.tizen.clatd.service
 Source2:       dbus-1/org.tizen.clatd.conf
index 057664c..9e67933 100644 (file)
 #include "ifc.h"
 #include "log.h"
 
+#ifdef TIZEN_EXT
+struct clat_config Global_Clatd_Config;
+#endif /* TIZEN_EXT */
+
 /* function: config_item_str
  * locates the config item and returns the pointer to a string, or NULL on failure.  Caller frees
  * pointer