From 887eae8516490f09a43b60d8b7a26cd4cba283a5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 8 Jan 2006 18:20:56 +0000 Subject: r12774: - fix the build on OpenBSD I'll try to remove TIME_T_MIN/TIME_T_MAX completly later, but for now I try to build on all platfarms metze (This used to be commit d51244b6613dc07076da56937d09e4020c596475) --- source4/lib/time.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source4/lib/time.c b/source4/lib/time.c index eb42d2963e..07c0a48c8c 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 -- cgit