diff --git a/osal/inc/mpp_common.h b/osal/inc/mpp_common.h index ac0223a0..0aca15f8 100644 --- a/osal/inc/mpp_common.h +++ b/osal/inc/mpp_common.h @@ -148,11 +148,14 @@ #define fseeko fseeko64 #else #include +#include #include #include #define mkdir(x) mkdir(x, S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) #endif +#define container_of(ptr, type, member) \ + ((type *)((char *)(ptr) - offsetof(type, member))) #define __RETURN __Return #define __FAILED __failed