diff options
author | Mike Lockwood <lockwood@android.com> | 2011-07-13 11:06:57 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2011-07-13 19:45:44 -0400 |
commit | c2be743a9c366a17d64c6afb5a299664ddfcd32f (patch) | |
tree | 3d1c4fbc08e5448351b97084b44a231720f03a3c /libs/binder | |
parent | 89c03508bce42488e5b280e7ae030fb3b9421ad5 (diff) | |
download | frameworks_native-c2be743a9c366a17d64c6afb5a299664ddfcd32f.zip frameworks_native-c2be743a9c366a17d64c6afb5a299664ddfcd32f.tar.gz frameworks_native-c2be743a9c366a17d64c6afb5a299664ddfcd32f.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.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)); } |