Author: metze Date: 2006-01-08 18:20:56 +0000 (Sun, 08 Jan 2006) New Revision: 12774
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12774 Log: - 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 Modified: branches/SAMBA_4_0/source/lib/time.c Changeset: Modified: branches/SAMBA_4_0/source/lib/time.c =================================================================== --- branches/SAMBA_4_0/source/lib/time.c 2006-01-08 18:12:35 UTC (rev 12773) +++ branches/SAMBA_4_0/source/lib/time.c 2006-01-08 18:20:56 UTC (rev 12774) @@ -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
