summaryrefslogtreecommitdiffstats
path: root/libs/binder
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2011-07-13 11:06:57 -0400
committerMike Lockwood <lockwood@android.com>2011-07-13 19:45:44 -0400
commitc1b9bbb21c8ad5109978a4e9e770cd18b0257434 (patch)
treebfb7dd2272e5fe29d3c0fc4f22ca708e00bc10be /libs/binder
parentb6e5e7a740bf595a1a5d32b28549e5d579a04ee3 (diff)
downloadframeworks_base-c1b9bbb21c8ad5109978a4e9e770cd18b0257434.zip
frameworks_base-c1b9bbb21c8ad5109978a4e9e770cd18b0257434.tar.gz
frameworks_base-c1b9bbb21c8ad5109978a4e9e770cd18b0257434.tar.bz2
Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build
Change-Id: I13d9f251f86c05ae5405f37adbf6b8e9660935ba Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'libs/binder')
-rw-r--r--libs/binder/ProcessState.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index 7264ac4..f5288c8 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -154,11 +154,7 @@ bool ProcessState::becomeContextManager(context_check_func checkFunc, void* user
mBinderContextUserData = userData;
int dummy = 0;
-#if defined(HAVE_ANDROID_OS)
status_t result = ioctl(mDriverFD, BINDER_SET_CONTEXT_MGR, &dummy);
-#else
- status_t result = INVALID_OPERATION;
-#endif
if (result == 0) {
mManagesContexts = true;
} else if (result == -1) {
@@ -304,12 +300,7 @@ static int open_driver()
if (fd >= 0) {
fcntl(fd, F_SETFD, FD_CLOEXEC);
int vers;
-#if defined(HAVE_ANDROID_OS)
status_t result = ioctl(fd, BINDER_VERSION, &vers);
-#else
- status_t result = -1;
- errno = EPERM;
-#endif
if (result == -1) {
LOGE("Binder ioctl to obtain version failed: %s", strerror(errno));
close(fd);
@@ -320,14 +311,11 @@ static int open_driver()
close(fd);
fd = -1;
}
-#if defined(HAVE_ANDROID_OS)
size_t maxThreads = 15;
result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads);
if (result == -1) {
LOGE("Binder ioctl to set max threads failed: %s", strerror(errno));
}
-#endif
-
} else {
LOGW("Opening '/dev/binder' failed: %s\n", strerror(errno));
}