diff options
author | 2022-04-25 04:58:23 +0000 | |
---|---|---|
committer | 2022-05-17 00:58:36 +0000 | |
commit | 1d935e86b9f5a4736a5e301bdd3e5fcbfdecf3b4 (patch) | |
tree | 60270c16ab712d1b4ed0e88714b5c675a9638b95 | |
parent | 1975aaa532eeeea97980718cd68c4101fcdf6b97 (diff) |
libbinder: add TEMP_FAILURE_RETRY header to RPC code
Binder RPC code uses the TEMP_FAILURE_RETRY macro which
is defined by the C library on Linux but not on other
operating systems. The utils/Compat.h header defines that
macro if not available. This change includes that header
into RPC code.
Test: m
Bug: 224644083
Change-Id: I2637e5260e258f3b2dfeb99e8ea7187c079550f7
-rw-r--r-- | libs/binder/RpcServer.cpp | 1 | ||||
-rw-r--r-- | libs/binder/RpcSession.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/libs/binder/RpcServer.cpp b/libs/binder/RpcServer.cpp index ace5cd5052..eb39bd9bb2 100644 --- a/libs/binder/RpcServer.cpp +++ b/libs/binder/RpcServer.cpp @@ -31,6 +31,7 @@ #include <binder/RpcServer.h> #include <binder/RpcTransportRaw.h> #include <log/log.h> +#include <utils/Compat.h> #include "FdTrigger.h" #include "RpcSocketAddress.h" diff --git a/libs/binder/RpcSession.cpp b/libs/binder/RpcSession.cpp index 16991db58d..b7ca88afce 100644 --- a/libs/binder/RpcSession.cpp +++ b/libs/binder/RpcSession.cpp @@ -34,6 +34,7 @@ #include <binder/RpcServer.h> #include <binder/RpcTransportRaw.h> #include <binder/Stability.h> +#include <utils/Compat.h> #include <utils/String8.h> #include "FdTrigger.h" |