diff --git a/src/OSD/OSD_MAllocHook.cxx b/src/OSD/OSD_MAllocHook.cxx index 8ed4385a5d..485a44850f 100755 --- a/src/OSD/OSD_MAllocHook.cxx +++ b/src/OSD/OSD_MAllocHook.cxx @@ -15,6 +15,10 @@ #include #include +#ifndef SIZE_MAX +#define SIZE_MAX UINT_MAX +#endif + #define MAX_STR 80 static OSD_MAllocHook::Callback* MypCurrentCallback = NULL;