diff options
author | Mike Lockwood <lockwood@android.com> | 2011-07-13 16:46:50 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-13 16:46:50 -0700 |
commit | e67ebacd15feecc359ed911a1135ffe9a633fb0d (patch) | |
tree | eb0c2bddcb28b899b8285ade6bbc630c2a7b823c /libs | |
parent | b328269531691a122a48b375676d1ec70b1e705f (diff) | |
parent | c1b9bbb21c8ad5109978a4e9e770cd18b0257434 (diff) | |
download | frameworks_base-e67ebacd15feecc359ed911a1135ffe9a633fb0d.zip frameworks_base-e67ebacd15feecc359ed911a1135ffe9a633fb0d.tar.gz frameworks_base-e67ebacd15feecc359ed911a1135ffe9a633fb0d.tar.bz2 |
Merge "Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build"
Diffstat (limited to 'libs')
-rw-r--r-- | libs/binder/ProcessState.cpp | 12 |
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)); } |