diff --git a/include/sys/types.h b/include/sys/types.h index 6fc0aa3d..510f512b 100644 --- a/include/sys/types.h +++ b/include/sys/types.h @@ -75,10 +75,13 @@ typedef unsigned long ino_t; typedef unsigned long long ino64_t; #endif -#ifndef __MES_INTPTR_T +#if !defined (__MES_INTPTR_T) && !defined (__intptr_t_defined) #define __MES_INTPTR_T +#define __intptr_t_defined #undef intptr_t typedef long intptr_t; +#undef uintptr_t +typedef unsigned long uintptr_t; #endif #ifndef __MES_OFF_T