diff --git a/jsapi/worker/message_queue.h b/jsapi/worker/message_queue.h index ff4c7c5c37c23e5b847571902593921ddc674dd5..67d4a4803394964d5486b10b0bf50d09b805bbd5 100644 --- a/jsapi/worker/message_queue.h +++ b/jsapi/worker/message_queue.h @@ -19,6 +19,7 @@ #include #include #include "napi/native_api.h" +#include "napi/native_node_api.h" namespace OHOS::CCRuntime::Worker { using MessageDataType = napi_value; diff --git a/jsapi/worker/worker.h b/jsapi/worker/worker.h index 4419e976e524a54d5697c7909cd1d8b9a726cbfc..e907e71b7efae4e000b7263f289dbe7720ddcd44 100644 --- a/jsapi/worker/worker.h +++ b/jsapi/worker/worker.h @@ -21,6 +21,7 @@ #include #include #include "message_queue.h" +#include "napi/native_api.h" #include "napi/native_node_api.h" #include "native_engine/native_engine.h" #include "utils/log.h" @@ -279,4 +280,4 @@ private: std::recursive_mutex liveStatusLock_ {}; }; } // namespace OHOS::CCRuntime::Worker -#endif // FOUNDATION_CCRUNTIME_JSAPI_WORKER_H \ No newline at end of file +#endif // FOUNDATION_CCRUNTIME_JSAPI_WORKER_H