summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/time.c4
1 files changed, 4 insertions, 0 deletions
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