]> git.ipfire.org Git - thirdparty/git.git/commitdiff
compat/regex/regcomp.c: define intptr_t and uintptr_t on NonStop
authorRandall S. Becker <randall.becker@nexbridge.ca>
Thu, 3 Jan 2019 21:03:51 +0000 (16:03 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Jan 2019 22:16:20 +0000 (14:16 -0800)
The system definition header files on HPE NonStop do not define
intptr_t and uintptr_t as do other platforms. These typedefs
are added specifically wrapped in a __TANDEM ifdef.

Signed-off-by: Randall S. Becker <rsbecker@nexbridge.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/regex/regcomp.c

index 51cd60baa37adbeef788098482d804c58cb9979f..c0d838834ad8714cc29148bf23895ab30498947e 100644 (file)
    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,