summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-09-29 15:52:44 +0100
committerCalin Juravle <calin@google.com>2014-09-29 15:57:43 +0100
commit7e5a0aca2cd81809786fad990b95f1fd404a83a5 (patch)
tree0d351f5e817c449dd34e55acb6aecec0740c5e69
parentb3facbfdecf46eb7c063b99529ab8c18a08a6b42 (diff)
downloadsystem_core-7e5a0aca2cd81809786fad990b95f1fd404a83a5.zip
system_core-7e5a0aca2cd81809786fad990b95f1fd404a83a5.tar.gz
system_core-7e5a0aca2cd81809786fad990b95f1fd404a83a5.tar.bz2
Fix mac build for nativebridge tests.
Bug: 17671501 Change-Id: Id0d729a25a5cea2fed5005cdea750e9e94f46d21
-rw-r--r--libnativebridge/tests/PreInitializeNativeBridge_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnativebridge/tests/PreInitializeNativeBridge_test.cpp b/libnativebridge/tests/PreInitializeNativeBridge_test.cpp
index 9b487d7..84078f7 100644
--- a/libnativebridge/tests/PreInitializeNativeBridge_test.cpp
+++ b/libnativebridge/tests/PreInitializeNativeBridge_test.cpp
@@ -31,8 +31,8 @@ namespace android {
static constexpr const char* kTestData = "PreInitializeNativeBridge test.";
TEST_F(NativeBridgeTest, PreInitializeNativeBridge) {
-#ifndef __APPLE_ // Mac OS does not support bind-mount.
-#ifndef HAVE_ANDROID_OS // Cannot write into the hard-wired location.
+#ifndef __APPLE__ // Mac OS does not support bind-mount.
+#ifndef HAVE_ANDROID_OS // Cannot write into the hard-wired location.
// Try to create our mount namespace.
if (unshare(CLONE_NEWNS) != -1) {
// Create a dummy file.