diff --git a/frameworks/native/vibrator/src/vibrator_service_client.cpp b/frameworks/native/vibrator/src/vibrator_service_client.cpp index 8c0fe85b8aa3432eec16f0debe0d7bab032c7a30..d3366577f7556f109bce31c0c4ebdf113761dd52 100644 --- a/frameworks/native/vibrator/src/vibrator_service_client.cpp +++ b/frameworks/native/vibrator/src/vibrator_service_client.cpp @@ -35,7 +35,7 @@ namespace Sensors { using namespace OHOS::HiviewDFX; namespace { -#ifdef __aarch64__ +#if (defined(__aarch64__) || defined(__x86_64__)) static const std::string DECODER_LIBRARY_PATH = "/system/lib64/platformsdk/libvibrator_decoder.z.so"; #else static const std::string DECODER_LIBRARY_PATH = "/system/lib/platformsdk/libvibrator_decoder.z.so";