> Unfortunately this broke the build on CentOS 3 and 4.

Thanks for testing.
The attached should address that.

>From b5393eae6e267c2c833895dc840b6a85cc94561d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <pbr...@fb.com>
Date: Thu, 20 Oct 2016 11:28:07 -0700
Subject: [PATCH] canonicalize-lgpl: fix for missing SIZE_MAX on older systems

* lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
Needed on Centos <= 4.
---
 ChangeLog               | 6 ++++++
 lib/canonicalize-lgpl.c | 5 +++++
 2 files changed, 11 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 48b1d1d..f274695 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-20  Pádraig Brady  <p...@draigbrady.com>
+
+	canonicalize-lgpl: fix for missing SIZE_MAX on older systems
+	* lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
+	Needed on Centos <= 4.
+
 2016-10-20  Jim Meyering  <meyer...@fb.com>
 
 	printf.m4: fix a bug in detecting printf %j support
diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c
index 7f54008..4b1f6cb 100644
--- a/lib/canonicalize-lgpl.c
+++ b/lib/canonicalize-lgpl.c
@@ -83,6 +83,11 @@
 # define DOUBLE_SLASH_IS_DISTINCT_ROOT 0
 #endif
 
+/* Define this independently so that stdint.h is not a prerequisite.  */
+#ifndef SIZE_MAX
+# define SIZE_MAX ((size_t) -1)
+#endif
+
 #if !FUNC_REALPATH_WORKS || defined _LIBC
 
 static void
-- 
2.5.5

Reply via email to