From e322fb0015e0204a479b77cda6b8a75ed8ab86a7 Mon Sep 17 00:00:00 2001 From: Lior Kaplan Date: Mon, 23 Nov 2015 19:08:46 +0200 Subject: [PATCH] SIZEOF_SIZE_T doesn't exist on AIX, keep using SIZEOF_LONG Follow up for 3689b444 --- ext/mbstring/oniguruma/regint.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/mbstring/oniguruma/regint.h b/ext/mbstring/oniguruma/regint.h index f06154dda1..ee831a8137 100644 --- a/ext/mbstring/oniguruma/regint.h +++ b/ext/mbstring/oniguruma/regint.h @@ -227,7 +227,11 @@ } while(0) /* sizeof(OnigCodePoint) */ -#define WORD_ALIGNMENT_SIZE SIZEOF_SIZE_T +#ifdef SIZEOF_SIZE_T +# define WORD_ALIGNMENT_SIZE SIZEOF_SIZE_T +#else +# define WORD_ALIGNMENT_SIZE SIZEOF_LONG +#endif #define GET_ALIGNMENT_PAD_SIZE(addr,pad_size) do {\ (pad_size) = WORD_ALIGNMENT_SIZE \ -- 2.50.1