diff --git a/osal/inc/mpp_common.h b/osal/inc/mpp_common.h index 2bf2856d..9519db59 100644 --- a/osal/inc/mpp_common.h +++ b/osal/inc/mpp_common.h @@ -125,9 +125,11 @@ #include #include +#include #define chdir _chdir #define mkdir _mkdir #define access _access +#define off_t _off_t #define R_OK 4 /* Test for read permission. */ #define W_OK 2 /* Test for write permission. */ diff --git a/osal/mpp_platform.cpp b/osal/mpp_platform.cpp index 483adbe6..da1ee3af 100644 --- a/osal/mpp_platform.cpp +++ b/osal/mpp_platform.cpp @@ -14,8 +14,7 @@ * limitations under the License. */ -#include - +#include "mpp_common.h" #include "mpp_platform.h" RK_U32 mpp_get_vcodec_hw_flag(void)