mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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 d51244b661
)
This commit is contained in:
parent
874c9b71b7
commit
887eae8516
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user