summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/replace/README2
-rw-r--r--source4/lib/replace/replace.h8
2 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/README b/source4/lib/replace/README
index 1e804d50e1..80a2d5c163 100644
--- a/source4/lib/replace/README
+++ b/source4/lib/replace/README
@@ -59,6 +59,8 @@ int{8,16,32,64}_t
Constants:
PATH_NAME_MAX
UINT16_MAX
+UINT32_MAX
+UINT64_MAX
Prerequisites:
memset (for bzero)
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index fda494a444..0f1eb42ac0 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -170,4 +170,12 @@ int rep_mkstemp(char *temp);
#define UINT16_MAX 65535
#endif
+#ifndef UINT32_MAX
+#define UINT32_MAX (4294967295U)
+#endif
+
+#ifndef UINT64_MAX
+#define UINT64_MAX ((uint64_t)-1)
+#endif
+
#endif