Blame SOURCES/0003-libselinux-Allow-to-override-OVERRIDE_GETTID-from-co.patch

0cca4b
From 431f72836d6c02450725cf6ffb1c7223b9fa6acc Mon Sep 17 00:00:00 2001
0cca4b
From: Petr Lautrbach <plautrba@redhat.com>
0cca4b
Date: Mon, 11 Mar 2019 15:26:43 +0100
0cca4b
Subject: [PATCH 3/5] libselinux: Allow to override OVERRIDE_GETTID from
0cca4b
 command line
0cca4b
0cca4b
$ make CFLAGS="$CFLAGS -DOVERRIDE_GETTID=0" ...
0cca4b
0cca4b
Drop this as soon as glibc-2.30 will become real 2.30 version, see
0cca4b
https://bugzilla.redhat.com/show_bug.cgi?id=1685594
0cca4b
0cca4b
Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
0cca4b
---
0cca4b
 libselinux/src/procattr.c | 2 ++
0cca4b
 1 file changed, 2 insertions(+)
0cca4b
0cca4b
diff --git a/libselinux/src/procattr.c b/libselinux/src/procattr.c
0cca4b
index c6799ef2..cbb6824e 100644
0cca4b
--- a/libselinux/src/procattr.c
0cca4b
+++ b/libselinux/src/procattr.c
0cca4b
@@ -24,6 +24,7 @@ static __thread char destructor_initialized;
0cca4b
 
0cca4b
 /* Bionic and glibc >= 2.30 declare gettid() system call wrapper in unistd.h and
0cca4b
  * has a definition for it */
0cca4b
+#ifndef OVERRIDE_GETTID
0cca4b
 #ifdef __BIONIC__
0cca4b
   #define OVERRIDE_GETTID 0
0cca4b
 #elif !defined(__GLIBC_PREREQ)
0cca4b
@@ -33,6 +34,7 @@ static __thread char destructor_initialized;
0cca4b
 #else
0cca4b
   #define OVERRIDE_GETTID 0
0cca4b
 #endif
0cca4b
+#endif
0cca4b
 
0cca4b
 #if OVERRIDE_GETTID
0cca4b
 static pid_t gettid(void)
0cca4b
-- 
0cca4b
2.21.0
0cca4b