diff options
| author | 2025-01-28 08:44:49 -0800 | |
|---|---|---|
| committer | 2025-01-28 08:44:49 -0800 | |
| commit | 7317ccbb67388b9ec3e2f7af7814108f37eda703 (patch) | |
| tree | 837559914fccc608780266d517c8045d8c482e74 /libs/binder/ProcessState.cpp | |
| parent | a5f7d9f7b8db227c0d72664394513ed58fe38b59 (diff) | |
| parent | e8e12433e1f7628904311347f9aeb455c2cb0a4f (diff) | |
Merge "Enable compilation of libbinder on Fuchsia" into main
Diffstat (limited to 'libs/binder/ProcessState.cpp')
| -rw-r--r-- | libs/binder/ProcessState.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 0e1e9b4127..0bec37999b 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -48,6 +48,10 @@ #define DEFAULT_MAX_BINDER_THREADS 15 #define DEFAULT_ENABLE_ONEWAY_SPAM_DETECTION 1 +#if defined(__ANDROID__) || defined(__Fuchsia__) +#define EXPECT_BINDER_OPEN_SUCCESS +#endif + #ifdef __ANDROID_VNDK__ const char* kDefaultDriver = "/dev/vndbinder"; #else @@ -613,7 +617,7 @@ ProcessState::ProcessState(const char* driver) } } -#ifdef __ANDROID__ +#if defined(EXPECT_BINDER_OPEN_SUCCESS) LOG_ALWAYS_FATAL_IF(!opened.ok(), "Binder driver '%s' could not be opened. Error: %s. Terminating.", driver, error.c_str()); |