From e2ba112070837967d9abeffdbddde986c3d5f9f4 Mon Sep 17 00:00:00 2001 From: Herman Chen Date: Fri, 16 Dec 2016 11:21:59 +0800 Subject: [PATCH] [osal]: Fix compile error on windows Change-Id: Id908c592aaee3b8f16f7529c8c3995b3f4af78f8 Signed-off-by: Herman Chen --- osal/inc/mpp_common.h | 2 ++ osal/mpp_platform.cpp | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) 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)