From: randall.s.becker@rogers.com Date: Sun, 21 Jan 2018 23:42:03 GMT Subject: [PATCH v4 4/4] Add intptr_t and uintptr_t to regcomp.c for NonStop platform. Message-ID: <20180121234203.13764-5-randall.s.becker@rogers.com> In-Reply-To: <20180121234203.13764-1-randall.s.becker@rogers.com> From: "Randall S. Becker" Fix missing intptr_t on NonStop in compat/regex/regcomp.c wrapped using the __TANDEM guard define. This is done because git-compat-util.h cannot be cleanly included into this file without additional compile errors. Signed-off-by: Randall S. Becker --- compat/regex/regcomp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compat/regex/regcomp.c b/compat/regex/regcomp.c index 51cd60baa..8bb4c966d 100644 --- a/compat/regex/regcomp.c +++ b/compat/regex/regcomp.c @@ -17,6 +17,14 @@ License along with the GNU C Library; if not, see . */ +#if defined __TANDEM +/* This is currently duplicated from git-compat-utils.h */ +#ifdef NO_INTPTR_T +typedef long intptr_t; +typedef unsigned long uintptr_t; +#endif +#endif + static reg_errcode_t re_compile_internal (regex_t *preg, const char * pattern, size_t length, reg_syntax_t syntax); static void re_compile_fastmap_iter (regex_t *bufp, -- 2.16.0.31.gf1a482c