aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/src/procattr.c
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-05-11 16:50:02 -0700
committerStephen Smalley <sds@tycho.nsa.gov>2017-05-12 08:54:04 -0400
commit9cc62ce35d099acf7897b6259228479737521709 (patch)
tree025cd71a778d55953ec8ea85ff7cb0d79363aebc /libselinux/src/procattr.c
parentc3118041df74124c5b8b8d769354bb0ca4c5ac19 (diff)
downloadandroid_external_selinux-9cc62ce35d099acf7897b6259228479737521709.tar.gz
android_external_selinux-9cc62ce35d099acf7897b6259228479737521709.tar.bz2
android_external_selinux-9cc62ce35d099acf7897b6259228479737521709.zip
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>
Diffstat (limited to 'libselinux/src/procattr.c')
-rw-r--r--libselinux/src/procattr.c4
1 files 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);