summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-01-08 18:20:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:53 -0500
commit887eae8516490f09a43b60d8b7a26cd4cba283a5 (patch)
treee3464e31658b728493c6784ca76ef8699e38dfe8 /source4/lib
parent874c9b71b755393eb88172e420ba0d661dbae5f8 (diff)
downloadsamba-887eae8516490f09a43b60d8b7a26cd4cba283a5.tar.gz
samba-887eae8516490f09a43b60d8b7a26cd4cba283a5.tar.bz2
samba-887eae8516490f09a43b60d8b7a26cd4cba283a5.zip
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)
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