svn commit: samba r12364 - in branches/SAMBA_4_0/source/lib/replace: .

metze at samba.org metze at samba.org
Mon Dec 19 17:10:21 GMT 2005


Author: metze
Date: 2005-12-19 17:10:18 +0000 (Mon, 19 Dec 2005)
New Revision: 12364

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12364

Log:
add UINT32_MAX and UINT64_MAX replacement defines
(hopefully fix the build on OpenBSD)

metze
Modified:
   branches/SAMBA_4_0/source/lib/replace/README
   branches/SAMBA_4_0/source/lib/replace/replace.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/README
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/README	2005-12-19 11:50:28 UTC (rev 12363)
+++ branches/SAMBA_4_0/source/lib/replace/README	2005-12-19 17:10:18 UTC (rev 12364)
@@ -59,6 +59,8 @@
 Constants:
 PATH_NAME_MAX
 UINT16_MAX
+UINT32_MAX
+UINT64_MAX
 
 Prerequisites:
 memset (for bzero)

Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h	2005-12-19 11:50:28 UTC (rev 12363)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h	2005-12-19 17:10:18 UTC (rev 12364)
@@ -170,4 +170,12 @@
 #define UINT16_MAX 65535
 #endif
 
+#ifndef UINT32_MAX
+#define UINT32_MAX (4294967295U)
 #endif
+
+#ifndef UINT64_MAX
+#define UINT64_MAX ((uint64_t)-1)
+#endif
+
+#endif



More information about the samba-cvs mailing list