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

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