From ffa113832906e9a5718f971aa3f1a4982ed638b5 Mon Sep 17 00:00:00 2001 From: Sunggyu Choi Date: Mon, 7 Oct 2019 10:53:05 +0900 Subject: [PATCH] Add attribute for thread local variable Change-Id: I410f37e9ad8dfe7c731523d36ea5dc8ff602d151 Signed-off-by: Sunggyu Choi --- packaging/capi-base-common.spec | 2 +- src/tizen_error.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/capi-base-common.spec b/packaging/capi-base-common.spec index 7de3924..64098da 100644 --- a/packaging/capi-base-common.spec +++ b/packaging/capi-base-common.spec @@ -1,6 +1,6 @@ Name: capi-base-common Summary: Common header files of Tizen Native API -Version: 0.4.52 +Version: 0.4.53 Release: 1 Group: Base License: Apache-2.0 diff --git a/src/tizen_error.c b/src/tizen_error.c index 03de2a9..9220295 100644 --- a/src/tizen_error.c +++ b/src/tizen_error.c @@ -22,7 +22,8 @@ /* END of Tizen Platoform Error */ #define TIZEN_ERROR_MIN_PLATFORM_MODULE -0x0FFFFFFF - +// Added by the request of AppFW part (Details: https://reviews.llvm.org/D26028) +__attribute__((tls_model("initial-exec"))) static __thread int tizen_last_error = TIZEN_ERROR_NONE; int get_last_result(void) -- 2.34.1