--- ./utf8.c.orig	2019-03-27 00:59:18 +0000
+++ ./utf8.c	2019-03-27 01:01:02 +0000
@@ -599,6 +599,10 @@
 	);
 }
 
+#ifndef SIZE_MAX
+# define SIZE_MAX ((size_t) -1)
+#endif
+
 /*
  * Returns first character length in bytes for multi-byte `text` according to
  * `encoding`.
