diff options
author | Kenny Root <kroot@google.com> | 2011-02-16 10:13:53 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2011-02-16 10:56:32 -0800 |
commit | af1cf07134dccc884c654da0e713c9213d7be3f4 (patch) | |
tree | a4343f8ed4c9e66c7437149572049681a09e8dbd /libs/binder/MemoryHeapBase.cpp | |
parent | 1ad7de7372466ac37ec4b0ec031e6466d533ebb4 (diff) | |
download | frameworks_native-af1cf07134dccc884c654da0e713c9213d7be3f4.zip frameworks_native-af1cf07134dccc884c654da0e713c9213d7be3f4.tar.gz frameworks_native-af1cf07134dccc884c654da0e713c9213d7be3f4.tar.bz2 |
Clean up use of HAVE_ANDROID_OS
HAVE_ANDROID_OS was defined as "1" for targets, but never defined as "0"
for non-targets. Changing them to #ifdef should be safe and matches
all the other uses of HAVE_ANDROID_OS throughout the system.
Change-Id: I82257325a8ae5e4e4371ddfc4dbf51cea8ea0abb
Diffstat (limited to 'libs/binder/MemoryHeapBase.cpp')
-rw-r--r-- | libs/binder/MemoryHeapBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/MemoryHeapBase.cpp b/libs/binder/MemoryHeapBase.cpp index 624f7eb..9f501e2 100644 --- a/libs/binder/MemoryHeapBase.cpp +++ b/libs/binder/MemoryHeapBase.cpp @@ -31,7 +31,7 @@ #include <binder/MemoryHeapBase.h> -#if HAVE_ANDROID_OS +#ifdef HAVE_ANDROID_OS #include <linux/android_pmem.h> #endif @@ -108,7 +108,7 @@ status_t MemoryHeapBase::mapfd(int fd, size_t size, uint32_t offset) { if (size == 0) { // try to figure out the size automatically -#if HAVE_ANDROID_OS +#ifdef HAVE_ANDROID_OS // first try the PMEM ioctl pmem_region reg; int err = ioctl(fd, PMEM_GET_TOTAL_SIZE, ®); |