HidlTransportSupport: fix build.
Test: user build builds successfully
Change-Id: Ic5b8910ac539b9acac4de5717b01ccced3a863c4
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 @@
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