diff --git a/source4/lib/time.c b/source4/lib/time.c index eb42d2963e3..07c0a48c8ca 100644 --- a/source4/lib/time.c +++ b/source4/lib/time.c @@ -44,6 +44,10 @@ * we use the INT32_MAX here as on 64 bit systems, * gmtime() fails with INT64_MAX */ +#ifndef INT32_MAX +#define INT32_MAX _TYPE_MAXIMUM(int32_t) +#endif + #define TIME_T_MAX MIN(INT32_MAX,_TYPE_MAXIMUM(time_t)) #endif