[PATCH v2 6/6] Add intptr_t and uintptr_t to regcomp.c for NonStop platform.
From: "Randall S. Becker" <rsbecker@nexbridge.com>
* compat/regex/regcomp.c: fix missing intptr_t on NonStop. 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 <rsbecker@nexbridge.com>
---
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
<http://www.gnu.org/licenses/>. */
+#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