selinux/libselinux
Nick Kralevich 044f6ef104 procattr.c: Use __ANDROID__ instead of ANDROID
When code is compiled within the Android tree, the resulting binaries
are intended to run either on the "host" (the machine doing the
building) or the "target" (the machine running the Android operating
system).

"ANDROID" is defined if the code is being compiled for the host or the
target, whereas "__ANDROID__" is only defined for code being compiled for
the target. (yes, I agree, this is not obvious).

gettid() is only declared in the target environment, not the host
environment, so adjust the #ifdef to properly emit the gettid()
definition for binaries targeting the host.

Signed-off-by: Nick Kralevich <nnk@google.com>
2016-11-28 09:32:21 -05:00
..
include libselinux: android: fix lax service context lookup 2016-09-29 09:59:44 -04:00
man libselinux: Add function to find security.restorecon_last entries 2016-09-26 14:05:54 -04:00
src procattr.c: Use __ANDROID__ instead of ANDROID 2016-11-28 09:32:21 -05:00
utils libselinux: fix subdir build and usage of cmdline CFLAGS 2016-11-14 13:10:51 -05:00
LICENSE
Makefile libselinux: Add clean-pywrap and clean-rubywrap targets 2016-10-27 10:35:37 -04:00
VERSION Update VERSION and ChangeLog files for 2.6 final release. 2016-10-14 11:31:26 -04:00