summarylogtreecommitdiffstats
path: root/001-gettid.patch
diff options
context:
space:
mode:
Diffstat (limited to '001-gettid.patch')
-rw-r--r--001-gettid.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/001-gettid.patch b/001-gettid.patch
new file mode 100644
index 000000000000..00873b919e60
--- /dev/null
+++ b/001-gettid.patch
@@ -0,0 +1,17 @@
+--- a/src/util.h
++++ b/src/util.h
+@@ -374,6 +374,7 @@ static inline int IsEmptyStr(const char *str)
+ return 0;
+ }
+
++#if !defined(__GLIBC__) || !defined(__GLIBC_PREREQ) || !__GLIBC_PREREQ(2, 30)
+ static inline pid_t gettid(void)
+ {
+ #if defined(LINUX) && defined(SYS_gettid)
+@@ -382,5 +383,6 @@ static inline pid_t gettid(void)
+ return getpid();
+ #endif
+ }
++#endif
+
+ #endif /*__UTIL_H__*/