1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
810 B

diff --git a/base/memory/shared_memory_handle.h b/base/memory/shared_memory_handle.h
index dd3d47a..7367188 100644
--- a/base/memory/shared_memory_handle.h
+++ b/base/memory/shared_memory_handle.h
@@ -146,7 +146,7 @@ class BASE_EXPORT SharedMemoryHandle {
int Release();
#endif
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(__ANDROID__)
// Marks the current file descriptor as read-only, for the purpose of
// mapping. This is independent of the region's read-only status.
void SetReadOnly() { read_only_ = true; }
@@ -218,7 +218,7 @@ class BASE_EXPORT SharedMemoryHandle {
bool ownership_passes_to_ipc_ = false;
};
};
-#elif defined(OS_ANDROID)
+#elif defined(OS_ANDROID) || defined(__ANDROID__)
friend class SharedMemory;
FileDescriptor file_descriptor_;