diff options
| author | Pavel Labath <labath@google.com> | 2016-12-02 11:15:15 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2016-12-02 11:15:15 +0000 |
| commit | e705c8b5e606de939f34adccd493aabb219f944f (patch) | |
| tree | 91d99b89ba34ad108936207bb175d814443eec49 /lldb/source/Host/common/Socket.cpp | |
| parent | 964782adbb1dc17413707e173f323a19ff479c7d (diff) | |
| download | bcm5719-llvm-e705c8b5e606de939f34adccd493aabb219f944f.tar.gz bcm5719-llvm-e705c8b5e606de939f34adccd493aabb219f944f.zip | |
Replace __ANDROID_NDK__ with __ANDROID__
Summary:
This replaces all the uses of the __ANDROID_NDK__ define with __ANDROID__. This
is a preparatory step to remove our custom android toolchain file and rely on
the standard android NDK one instead, which does not provide this define.
Instead I rely, on __ANDROID__, which is set by the compiler.
I haven't yet removed the cmake variable with the same name, as we will need to
do something completely different there -- NDK toolchain defines
CMAKE_SYSTEM_NAME to Android, while our current one pretends it's linux.
Reviewers: tberghammer, zturner
Subscribers: danalbert, srhines, mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D27305
llvm-svn: 288494
Diffstat (limited to 'lldb/source/Host/common/Socket.cpp')
| -rw-r--r-- | lldb/source/Host/common/Socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/common/Socket.cpp b/lldb/source/Host/common/Socket.cpp index cbdb0779ba1..3e9490800cd 100644 --- a/lldb/source/Host/common/Socket.cpp +++ b/lldb/source/Host/common/Socket.cpp @@ -33,7 +33,7 @@ #include "lldb/Host/linux/AbstractSocket.h" #endif -#ifdef __ANDROID_NDK__ +#ifdef __ANDROID__ #include <arpa/inet.h> #include <asm-generic/errno-base.h> #include <bits/error_constants.h> @@ -44,7 +44,7 @@ #include <sys/syscall.h> #include <unistd.h> #endif // ANDROID_ARM_BUILD_STATIC || ANDROID_MIPS_BUILD_STATIC -#endif // __ANDROID_NDK__ +#endif // __ANDROID__ using namespace lldb; using namespace lldb_private; |

