# HG changeset patch # User Bram Moolenaar # Date 1679429703 -3600 # Node ID 9493de63a3f65dbfc2885f1f3f1a31b48364036f # Parent 4465f843b1fdd3e92f5fe088bc265d22a019fee8 patch 9.0.1420: build failure because SIZE_MAX is not defined Commit: https://github.com/vim/vim/commit/aa26153b6cb8353c1cd64667ec55ab5186fa1036 Author: Bram Moolenaar Date: Tue Mar 21 20:04:58 2023 +0000 patch 9.0.1420: build failure because SIZE_MAX is not defined Problem: Build failure because SIZE_MAX is not defined. Solution: Define SIZE_MAX when missing. (John Marriott) diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1420, +/**/ 1419, /**/ 1418, diff --git a/src/xdiff/xmacros.h b/src/xdiff/xmacros.h --- a/src/xdiff/xmacros.h +++ b/src/xdiff/xmacros.h @@ -24,7 +24,11 @@ #define XMACROS_H - +#ifdef __hpux +# ifndef SIZE_MAX +# define SIZE_MAX ((size_t)(-1)) +# endif +#endif #define XDL_MIN(a, b) ((a) < (b) ? (a): (b)) #define XDL_MAX(a, b) ((a) > (b) ? (a): (b))