Blame SOURCES/opencryptoki-3.16.0-69244a5e0d9dfec3ef534b19b89a541576bb17dc.patch

bf3226
commit 69244a5e0d9dfec3ef534b19b89a541576bb17dc
bf3226
Author: Ingo Franzki <ifranzki@linux.ibm.com>
bf3226
Date:   Tue Feb 9 10:47:57 2021 +0100
bf3226
bf3226
    TRACE: Use gettid() if SYS_gettid is not defined
bf3226
    
bf3226
    Also print the thread ID in the trace, if SYS_gettid is not defined.
bf3226
    
bf3226
    Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
bf3226
bf3226
diff --git a/usr/lib/common/trace.c b/usr/lib/common/trace.c
bf3226
index 678c0b96..bdc5256a 100644
bf3226
--- a/usr/lib/common/trace.c
bf3226
+++ b/usr/lib/common/trace.c
bf3226
@@ -33,6 +33,8 @@
bf3226
 
bf3226
 #ifdef SYS_gettid
bf3226
 #define __gettid() syscall(SYS_gettid)
bf3226
+#else
bf3226
+#define __gettid() gettid()
bf3226
 #endif
bf3226
 
bf3226
 pthread_mutex_t tlmtx = PTHREAD_MUTEX_INITIALIZER;