summaryrefslogtreecommitdiff
path: root/transport/HidlTransportSupport.cpp
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2017-11-22 22:15:39 -0800
committerYifan Hong <elsk@google.com>2017-11-22 22:16:24 -0800
commita8b6eabcab2ddc29173882e750e801e8f6fd8a07 (patch)
tree87d4a1b0da7686266b8842f7ad1bdcbfc5cbc2f9 /transport/HidlTransportSupport.cpp
parentb7f9ca526797ac1ed59ec427b8e8a7fee7bd5390 (diff)
downloadlibhidl-a8b6eabcab2ddc29173882e750e801e8f6fd8a07.tar.gz
HidlTransportSupport: fix build.
Test: user build builds successfully Change-Id: Ic5b8910ac539b9acac4de5717b01ccced3a863c4
Diffstat (limited to 'transport/HidlTransportSupport.cpp')
-rw-r--r--transport/HidlTransportSupport.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/transport/HidlTransportSupport.cpp b/transport/HidlTransportSupport.cpp
index 1a9f195..1df6c38 100644
--- a/transport/HidlTransportSupport.cpp
+++ b/transport/HidlTransportSupport.cpp
@@ -16,6 +16,8 @@
#include <hidl/HidlTransportSupport.h>
#include <hidl/HidlBinderSupport.h>
+#include <android/hidl/manager/1.0/IServiceManager.h>
+
namespace android {
namespace hardware {
@@ -59,7 +61,7 @@ int32_t getPidIfSharable() {
return getpid();
#else
using android::hidl::manager::V1_0::IServiceManager;
- return IServiceManager::PidConstant::NO_PID;
+ return static_cast<int32_t>(IServiceManager::PidConstant::NO_PID);
#endif
}
} // namespace details