Skip to content

Commit aa26153

Browse files
committed
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)
1 parent 4a5c39f commit aa26153

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1420,
698700
/**/
699701
1419,
700702
/**/

src/xdiff/xmacros.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
#define XMACROS_H
2525

2626

27-
27+
#ifdef __hpux
28+
# ifndef SIZE_MAX
29+
# define SIZE_MAX ((size_t)(-1))
30+
# endif
31+
#endif
2832

2933
#define XDL_MIN(a, b) ((a) < (b) ? (a): (b))
3034
#define XDL_MAX(a, b) ((a) > (b) ? (a): (b))

0 commit comments

Comments
 (0)