procattr.c: Use __BIONIC__ instead of __ANDROID__

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>
This commit is contained in:
Tom Cherry 2017-05-11 16:50:02 -07:00 committed by Stephen Smalley
parent c3118041df
commit 9cc62ce35d
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ static pthread_key_t destructor_key;
static int destructor_key_initialized = 0; static int destructor_key_initialized = 0;
static __thread char destructor_initialized; static __thread char destructor_initialized;
#ifndef __ANDROID__ #ifndef __BIONIC__
/* Android declares this in unistd.h and has a definition for it */ /* Bionic declares this in unistd.h and has a definition for it */
static pid_t gettid(void) static pid_t gettid(void)
{ {
return syscall(__NR_gettid); return syscall(__NR_gettid);