summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index bb271d45fa..40e0648a7a 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -586,6 +586,10 @@ int rep_strerror_r(int errnum, char *buf, size_t buflen);
#define UINT64_MAX ((uint64_t)-1)
#endif
+#ifndef INT64_MAX
+#define INT64_MAX 9223372036854775807
+#endif
+
#ifndef CHAR_BIT
#define CHAR_BIT 8
#endif