diff options
Diffstat (limited to 'libcutils/sockets.c')
-rw-r--r-- | libcutils/sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcutils/sockets.c b/libcutils/sockets.c index 15ede2b5b..d43878258 100644 --- a/libcutils/sockets.c +++ b/libcutils/sockets.c @@ -17,7 +17,7 @@ #include <cutils/sockets.h> #include <log/log.h> -#ifdef HAVE_ANDROID_OS +#if defined(__ANDROID__) /* For the socket trust (credentials) check */ #include <private/android_filesystem_config.h> #define __android_unused @@ -27,7 +27,7 @@ bool socket_peer_is_trusted(int fd __android_unused) { -#ifdef HAVE_ANDROID_OS +#if defined(__ANDROID__) struct ucred cr; socklen_t len = sizeof(cr); int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len); |