From: Riku Nomoto Date: Thu, 19 Nov 2020 20:10:05 +0000 (+0900) Subject: common_library: gettid is multiple declaration in cl_error X-Git-Tag: 10.0.1~12 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=2219d0168f8f8418aee784a7542388ef064fa833;hp=f244c912f1393e3a1246ccd1c9d591e38ad080f5;p=staging%2Fbasesystem.git common_library: gettid is multiple declaration in cl_error Compile error occurs if the version is JJ or above. glibc 2.30 includes gettid() wrapper definition. So we deleted the 4 lines. Signed-off-by: Riku Nomoto Change-Id: Ia9512d146b5f86862296b5b1ea54e3558453e02d --- diff --git a/nsframework/common_library/client/include/cl_error.h b/nsframework/common_library/client/include/cl_error.h index 84bf64e..1441262 100755 --- a/nsframework/common_library/client/include/cl_error.h +++ b/nsframework/common_library/client/include/cl_error.h @@ -21,10 +21,6 @@ #include #include -static inline int gettid(void) { // NOLINT(readability/nolint) - return (int)syscall(__NR_gettid); // NOLINT(readability/casting) -} - #define _num_to_str(num) #num #define num_to_str(num) _num_to_str(num) #define CL_PERROR(msg) \