All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] procattr.c: Use __BIONIC__ instead of __ANDROID__
@ 2017-05-11 23:50 Tom Cherry
  2017-05-12  0:18 ` William Roberts
  2017-05-12 13:22 ` Stephen Smalley
  0 siblings, 2 replies; 6+ messages in thread
From: Tom Cherry @ 2017-05-11 23:50 UTC (permalink / raw)
  To: selinux; +Cc: nnk, enh, Tom Cherry

This check is not specific to Android devices. If libselinux were used
with Bionic on a normal Linux system this check would still be needed.

Signed-off-by: Tom Cherry <tomcherry@google.com>
---
 libselinux/src/procattr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libselinux/src/procattr.c b/libselinux/src/procattr.c
index ebc0adec..48dd8aff 100644
--- a/libselinux/src/procattr.c
+++ b/libselinux/src/procattr.c
@@ -22,8 +22,8 @@ static pthread_key_t destructor_key;
 static int destructor_key_initialized = 0;
 static __thread char destructor_initialized;
 
-#ifndef __ANDROID__
-/* Android declares this in unistd.h and has a definition for it */
+#ifndef __BIONIC__
+/* Bionic declares this in unistd.h and has a definition for it */
 static pid_t gettid(void)
 {
 	return syscall(__NR_gettid);
-- 
2.13.0.rc2.291.g57267f2277-goog

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-05-12 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 23:50 [PATCH] procattr.c: Use __BIONIC__ instead of __ANDROID__ Tom Cherry
2017-05-12  0:18 ` William Roberts
2017-05-12  0:19   ` enh
2017-05-12 13:22 ` Stephen Smalley
2017-05-12 18:01   ` Tom Cherry
2017-05-12 22:11     ` William Roberts

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.