Home | History | Annotate | Download | only in patch
      1 diff --git a/base/memory/shared_memory_handle.h b/base/memory/shared_memory_handle.h
      2 index dd3d47a..7367188 100644
      3 --- a/base/memory/shared_memory_handle.h
      4 +++ b/base/memory/shared_memory_handle.h
      5 @@ -146,7 +146,7 @@ class BASE_EXPORT SharedMemoryHandle {
      6    int Release();
      7  #endif
      8  
      9 -#if defined(OS_ANDROID)
     10 +#if defined(OS_ANDROID) || defined(__ANDROID__)
     11    // Marks the current file descriptor as read-only, for the purpose of
     12    // mapping. This is independent of the region's read-only status.
     13    void SetReadOnly() { read_only_ = true; }
     14 @@ -218,7 +218,7 @@ class BASE_EXPORT SharedMemoryHandle {
     15        bool ownership_passes_to_ipc_ = false;
     16      };
     17    };
     18 -#elif defined(OS_ANDROID)
     19 +#elif defined(OS_ANDROID) || defined(__ANDROID__)
     20    friend class SharedMemory;
     21  
     22    FileDescriptor file_descriptor_;
     23