diff options
author | 2025-01-28 09:19:28 -0800 | |
---|---|---|
committer | 2025-01-28 09:19:28 -0800 | |
commit | fcfe0409916dcd9b9b6bf66c7dda3446a994bc2e (patch) | |
tree | 837559914fccc608780266d517c8045d8c482e74 /libs/binder/Parcel.cpp | |
parent | 4fc5a2befa6412030867528716467b5dc640dc6e (diff) | |
parent | 7317ccbb67388b9ec3e2f7af7814108f37eda703 (diff) |
Merge "Enable compilation of libbinder on Fuchsia" into main am: 7317ccbb67
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3459704
Change-Id: I51e50af208dd711b3de47108aa2fbf50bf70a103
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r-- | libs/binder/Parcel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 65c6553e44..1e83c350b1 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -299,8 +299,13 @@ status_t Parcel::flattenBinder(const sp<IBinder>& binder) { obj.handle = handle; obj.cookie = 0; } else { +#if __linux__ int policy = local->getMinSchedulerPolicy(); int priority = local->getMinSchedulerPriority(); +#else + int policy = 0; + int priority = 0; +#endif if (policy != 0 || priority != 0) { // override value, since it is set explicitly |