diff options
Diffstat (limited to 'libnativeloader/native_loader_test.cpp')
-rw-r--r-- | libnativeloader/native_loader_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libnativeloader/native_loader_test.cpp b/libnativeloader/native_loader_test.cpp index 3f2505c2de..66d7531b35 100644 --- a/libnativeloader/native_loader_test.cpp +++ b/libnativeloader/native_loader_test.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +#if defined(ART_TARGET_ANDROID) + #include <dlfcn.h> #include <memory> #include <unordered_map> @@ -700,3 +702,5 @@ TEST(NativeLoaderJniConfigParser, RejectMalformed) { } // namespace nativeloader } // namespace android + +#endif // defined(ART_TARGET_ANDROID) |