Blame SOURCES/opencryptoki-3.16.0-69244a5e0d9dfec3ef534b19b89a541576bb17dc.patch

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